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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Advertised BGP Networks using Static Routes

If a static route is configured to advertise a /24 network using a next hop address that is behind an interface on this router that is currently down, will those networks be advertised out via BGP.

Please advise and thank you!

5 REPLIES

Re: Advertised BGP Networks using Static Routes

should not since that static route will not be in routing table any more.

Re: Advertised BGP Networks using Static Routes

The network will not be advertised by BGP.

Re: Advertised BGP Networks using Static Routes

Hi,

If the next-hop is not reachable, then no rules applied.

BGP first check the next-hop reachability by performing lookup in the Ip routing table (RIP) , if the next-hop not reachable, then No network will be advertised.

HTH

Mohamed

Hall of Fame Super Silver

Re: Advertised BGP Networks using Static Routes

Hello Matt,

the BGP process executes routinely every x seconds a control of BGP next hops reachability so at the next control if the next hop is found unreachable all BGP prefixes that have this BGP next-hop are removed from the BGP table and a withdrawn message is prepared and sent out to all BGP neighbors telling to remove those prefixes.

Edit:

the check of BGP next-hop is made by examining the IP routing table not by sending probe packets.

Hope to help

Giuseppe

New Member

Re: Advertised BGP Networks using Static Routes

As Matt stated,

     Edit:

     the check of BGP next-hop is made by examining the IP routing table not by sending probe packets.

BGP will advertise any network (specified by network statement)  if it is known via an IGP or in the IGP routing table.

So,if you do a "show ip route" and see a route listed (static or otherwise) that matches a BGP network statement, BGP will advertise the route.

Use the sho ip bgp neighbors X.X.X.X advertised-routes  command to see whats being sent to neighbot. Where x is neighbor ip that has adjacency up.

It is easy enough to test in a lab in 5 mins. using GNS3 or something like that.

781
Views
0
Helpful
5
Replies