BGP network statement

Unanswered Question
Feb 12th, 2009
User Badges:
  • Purple, 4500 points or more


If I have three interfaces:

int lo1

ip address

int fa0/0

ip address

int s1/0

ip address

Would my network statements in BGP for s1/0 and lo1 look like:

network mask

network mask

network mask

In other words, my masks in bgp should match what's on my interface, right? I know there's exceptions to the rule.



  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (3 ratings)
Edison Ortiz Thu, 02/12/2009 - 10:18
User Badges:
  • Super Bronze, 10000 points or more
  • Hall of Fame,

    Founding Member

Yes, it must match the mask in the routing table.



Richard Burts Thu, 02/12/2009 - 10:20
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN


When you use the mask in the BGP network statement then BGP looks into the routing table for a prefix with exactly that mask. So you your BGP mask should match what in on your interface.



Harold Ritter Thu, 02/12/2009 - 10:26
User Badges:
  • Cisco Employee,


That is correct. By the way, the mask configured on the network statement for is the default maks for a class C prefix and will therefore not show in the config.



This Discussion