cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
606
Views
0
Helpful
4
Replies

BGP route explanation

John Blakley
VIP Alumni
VIP Alumni

All,

I noticed today the following, and I need some clarification.

This is the config that I have:

int fa1

ip address 192.168.3.0 255.255.255.0

router bgp 1

network 192.168.1.0 mask 255.255.255.0

no auto-summary

ip route 192.168.1.0 255.255.255.0 192.168.3.5

The 192.168.1.0 is a static route that is listed in bgp. My routing table on the other end is showing that it's learning the route from bgp, but I'm not redistributing statics.

This isn't causing a problem, but I'm curious as to how this is happening.

Thanks!

John

HTH, John *** Please rate all useful posts ***
1 Accepted Solution

Accepted Solutions

John,

That is correct.

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

View solution in original post

4 Replies 4

Harold Ritter
Cisco Employee
Cisco Employee

John,

The network statement causes BGP to check for the presence of the configured prefix in the RIB. If it is installed in the RIB (in this case it is via the static route) it advertises it to its peer.

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

Ah, that makes sense. So, in reality, redistributing static routes is automatic if the network that's advertised is a local static route. The best way to not advertise those would be not to place it in the bgp process.

Thanks!

John

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

John,

That is correct.

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

Thanks!

HTH, John *** Please rate all useful posts ***
Review Cisco Networking products for a $25 gift card