BGP route explanation

Answered Question
Nov 5th, 2008

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

I have this problem too.
0 votes
Correct Answer by Harold Ritter about 8 years 2 months ago

John,

That is correct.

Regards

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Harold Ritter Wed, 11/05/2008 - 08:48

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

John Blakley Wed, 11/05/2008 - 09:11

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

Actions

This Discussion