Network command in BGP ?

auosauos Member Posts: 186

I was so confuse about (network command) in BGP,

1. I do (network 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 mask 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.


  • Options
    chmorinchmorin Member Posts: 1,446 ■■■■■□□□□□
    I'm not a BGP expert... heck I'm not even a BGP novice. But I found this:

    Q. How does BGP behave differently with auto-summary enabled or disabled?

    A. Auto-summary behavior has changed across Cisco IOS software releases. Initially, auto-summary was enabled by default. However, with Cisco bug ID CSCdu81680 ( registered customers only) this behavior has changed. In the latest Cisco IOS, auto-summary is disabled by default. When auto-summary is enabled, it summarizes the locally originated BGP networks to their classfull boundaries. Auto-summary is enabled by default in BGP. When auto-summary is disabled, the routes introduced locally into the BGP table are not summarized to their classfull boundaries. When a subnet exists in the routing table and these three conditions are satisfied, then any subnet of that classfull network in the local routing table will prompt BGP to install the classfull network into the BGP table.

    Classfull network statement for a network in the routing table

    Classfull mask on that network statement

    Auto-summary enabled

    For example, if the subnet in the routing table is mask, and you configure network under the router bgp command, and auto-summary is enabled, BGP introduces the classfull network mask in the BGP table.

    If these three conditions are not all met, then BGP does not install any entry in the BGP table unless there is an exact match in the local routing table.

    The last part there. Someone else also had as similar problem:

    Since I have 'no auto-summary' option on under the bgp process, I was expecting to networks such as included under the advertisement 'network mask'. However, that did not happen. In order to see the network advertised on R4 (BGP 200), I had to create a 'network mask' under the bgp 100 on R2.

    With the answer:
    BGP auto-summary rule says that ,Take a example that you are having network that and you want to advertise into BGP with auto-summary. So you need to advertise this network via network in the bgp process with auto-summary.you cannot adverise mask will not work.

    So I guess we would need to see your routing table to tell you why. By default with auto-summary enabled it gives a mask of (class B). Since you specified an exact mask though it must have matched something in the routing table, and worked.
    Currently Pursuing
    WGU (BS in IT Network Administration) - 52%| CCIE:Voice Written - 0% (0/200 Hours)
    mikej412 wrote:
    Cisco Networking isn't just a job, it's a Lifestyle.
Sign In or Register to comment.