cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
310
Views
15
Helpful
3
Replies

BGP network statement

John Blakley
VIP Alumni
VIP Alumni

All,

If I have three interfaces:

int lo1

ip address 172.5.5.5 255.255.255.255

int fa0/0

ip address 192.168.1.1 255.255.255.0

int s1/0

ip address 10.5.5.1 255.255.255.252

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

network 10.5.5.0 mask 255.255.255.252

network 172.5.5.5 mask 255.255.255.255

network 192.168.1.0 mask 255.255.255.0

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

Thanks!

John

HTH, John *** Please rate all useful posts ***
3 Replies 3

Edison Ortiz
Hall of Fame
Hall of Fame

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

__

Edison.

Richard Burts
Hall of Fame
Hall of Fame

John

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.

HTH

Rick

HTH

Rick

Harold Ritter
Cisco Employee
Cisco Employee

John,

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

Regards

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: