Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Attention: The Community will be in read-only mode on 12/14/2017 from 12:00 am pacific to 11:30 am.

During this time you will only be able to see content. Other interactions such as posting, replying to questions, or marking content as helpful will be disabled for few hours.

We apologize for the inconvenience while we perform important updates to the Community.

BGP route explanation

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
Cisco Employee

Re: BGP route explanation

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
4 REPLIES
Cisco Employee

Re: BGP route explanation

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

Re: BGP route explanation

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 ***
Cisco Employee

Re: BGP route explanation

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

Re: BGP route explanation

Thanks!

HTH, John *** Please rate all useful posts ***
307
Views
0
Helpful
4
Replies
CreatePlease to create content