11-05-2008 08:39 AM - edited 03-04-2019 12:12 AM
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
Solved! Go to Solution.
11-05-2008 09:17 AM
John,
That is correct.
Regards
11-05-2008 08:48 AM
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
11-05-2008 09:11 AM
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
11-05-2008 09:17 AM
John,
That is correct.
Regards
11-05-2008 09:17 AM
Thanks!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide