07-23-2018 07:20 PM - edited 07-23-2018 07:23 PM
Hi,
we have 2 core sites (100 miles apart) connected via a 1gb leased line.
At both sites we have an internet breakout. However, in normal use, all traffic flows out of site A.
All of our remote sites connect to both sites via an MPLS network using BGP
Site A advertises the static default route 0.0.0.0/0 via SITE A firewall to SITE A internet
Site B has a static default route 0.0.0.0/0 to site A via 1gb leased line.
What I want to do is change Site B to advertise the static route 0.0.0.0/0 via SITE B firewall to SITE B internet. I'm wondering what effect this will have as it will inject a secondary 0.0.0.0/0 into the routing table? And if so, how do we make SITE A the preferred route for the remote (BGP) sites?
Solved! Go to Solution.
07-23-2018 08:58 PM
Hi Louis
If you advertise a second default route, traffic will take the best path based on bgp attributes. If you want to control and always make SITE A default route preferred, you will need to configure the local preference like:
route-map SITEA permit 10
set local-pref 200
Router bgp xxxxx
neighbor SITE-A-ROUTER-IP route-map SITEA in
The higher the local-pref value is the higher the path is preferred. If you want to make site A best path for default route only, you can also create a prefix-list and call it into your route-map like:
ip prefix-list default seq 5 permit 0.0.0.0/0
route-map SITEA permit 10
set local-pref 200
match ip address prefix default
route-map SITEA permit 20
Router bgp xxxxx
neighbor SITE-A-ROUTER-IP route-map SITEA in
This config will force site A as best path for default route only.
07-23-2018 08:58 PM
Hi Louis
If you advertise a second default route, traffic will take the best path based on bgp attributes. If you want to control and always make SITE A default route preferred, you will need to configure the local preference like:
route-map SITEA permit 10
set local-pref 200
Router bgp xxxxx
neighbor SITE-A-ROUTER-IP route-map SITEA in
The higher the local-pref value is the higher the path is preferred. If you want to make site A best path for default route only, you can also create a prefix-list and call it into your route-map like:
ip prefix-list default seq 5 permit 0.0.0.0/0
route-map SITEA permit 10
set local-pref 200
match ip address prefix default
route-map SITEA permit 20
Router bgp xxxxx
neighbor SITE-A-ROUTER-IP route-map SITEA in
This config will force site A as best path for default route only.
07-23-2018 10:43 PM
07-24-2018 05:39 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide