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

static with BGP routing issue

mayureshgangal
Level 1
Level 1

All experts

I am facing weired issue with static and BGP routing.One of our remote location is having multiple links from different providers.

one link with static and other with BGP.we have put default static route but still BGP route has been preferred.

Even after clearing the BGP routes manually ,routing table takes the BGP routes

Once we shut down the BGP connectivity ,the router learn all routes by STATIC

what could be the problem

Any solution will be appreciated

with regards

mayuresh

4 Replies 4

cadet alain
VIP Alumni
VIP Alumni

Hi,

If the same prefix/length is advertised by a static route and by eBGP then static route should take precedence as the AD is 1 versus 20 for eBGP.  can you post your sh ip route static as well as sh ip route output.

Regards.

Alain.

Don't forget to rate helpful posts.

Edison Ortiz
Hall of Fame
Hall of Fame

A default static route will be used as last resort. BGP is providing you with specific subnets/networks and those will be used before using a default route. If you want the statics to be used, you need to add those subnets/networks as static or block the subnets from being learned via BGP.

Regards,

Edison

Thanks edison

It did worked the way you suggested

with regards

mayuresh

Please mark the thread as resolved.