01-22-2008 05:28 AM - edited 03-03-2019 08:21 PM
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
Solved! Go to Solution.
01-22-2008 06:17 AM
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
01-22-2008 05:49 AM
You can use local preferance for that.
01-22-2008 06:17 AM
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
01-22-2008 07:59 AM
Thank you sir. Your route-map option did the trick!
Diego
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: