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

weight/metric and BGP default route from provider

I am getting two default routes from my two ISPs via BGP. Since the routes are now equal in weight/metric my outbound traffic is being balanced out both provider circuits. How can I add a weight or metric to one of the two so it becomes the preferred outbound connection?

Thanks,

Diego

1 ACCEPTED SOLUTION

Accepted Solutions

Re: weight/metric and BGP default route from provider

Hi,

Both ISP is connected to one router and you only received default route from both not full internet routing table?

Try this...

!

route-map DEFAULT-PREFERRED permit 5

match ip address prefix-list DEFAULT

set weight 150

!

ip prefix-list DEFAULT seq 5 permit 0.0.0.0/0

!

! ...and put the route-map to your preferred ISP for outgoing traffic

!

neighbor a.b.c.d route-map DEFAULT-PREFERRED in

!

To make it work...

Router# clear ip bgp a.b.c.d soft in

Alternatively, you can block all incoming BGP advertisement from your upstream and just put a default route to both with higher AD to non-preferred ISP.

ip route 0.0.0.0 0.0.0.0 a.b.c.d 10 name preferred-isp

ip route 0.0.0.0 0.0.0.0 w.x.y.z. 20 name non-preferred-isp

Regards,

Dandy

3 REPLIES
New Member

Re: weight/metric and BGP default route from provider

You can use local preferance for that.

Re: weight/metric and BGP default route from provider

Hi,

Both ISP is connected to one router and you only received default route from both not full internet routing table?

Try this...

!

route-map DEFAULT-PREFERRED permit 5

match ip address prefix-list DEFAULT

set weight 150

!

ip prefix-list DEFAULT seq 5 permit 0.0.0.0/0

!

! ...and put the route-map to your preferred ISP for outgoing traffic

!

neighbor a.b.c.d route-map DEFAULT-PREFERRED in

!

To make it work...

Router# clear ip bgp a.b.c.d soft in

Alternatively, you can block all incoming BGP advertisement from your upstream and just put a default route to both with higher AD to non-preferred ISP.

ip route 0.0.0.0 0.0.0.0 a.b.c.d 10 name preferred-isp

ip route 0.0.0.0 0.0.0.0 w.x.y.z. 20 name non-preferred-isp

Regards,

Dandy

New Member

Re: weight/metric and BGP default route from provider

Thank you sir. Your route-map option did the trick!

Diego

359
Views
9
Helpful
3
Replies