Network command in BGP ?
Hi,
I was so confuse about (network command) in BGP,
1. I do (network 172.16.1.0) without mask and auto-summary are enable and I have entry for that network in my routing table, why BGP NOT advertise that network to BGP peers with default class. No any entry in BGP table. (I mean if I did not mention mask they should be take /16 as default?)
2. I do (network 172.16.1.0 mask 255.255.255.0) and auto-summary are enable and I have entry for that network in my routing table, why BGP advertise that network with /24 and did not care about auto-summary.
I was so confuse about (network command) in BGP,
1. I do (network 172.16.1.0) without mask and auto-summary are enable and I have entry for that network in my routing table, why BGP NOT advertise that network to BGP peers with default class. No any entry in BGP table. (I mean if I did not mention mask they should be take /16 as default?)
2. I do (network 172.16.1.0 mask 255.255.255.0) and auto-summary are enable and I have entry for that network in my routing table, why BGP advertise that network with /24 and did not care about auto-summary.
Comments
https://www.cisco.com/en/US/tech/tk365/technologies_q_and_a_item09186a00800949e8.shtml#five
The last part there. Someone else also had as similar problem:
https://supportforums.cisco.com/message/3027790
With the answer:
So I guess we would need to see your routing table to tell you why. By default with auto-summary enabled it gives 172.16.1.0 a mask of 255.255.0.0 (class