We've recently added a second BGP peer to our configuration on a MX-5 and want to prefer the first peer's route to the Internet in all cases, unless that peer is unavailable.
Right now, there is atill a static default route to the first peer, and a higher preference to the 2nd peer has also been added. However, when the 2nd peer comes up it does start routing traffic to the Internet via that less preferred route. Shouldn't the static 0.0.0.0/0 route still supersede everything?
Beyond that, the second peer ISP said I might need to send them community info to limit what's being accepted by them. Does that seem correct? Any advice on how to best and simply configure this dual ISP BGP scenario would be appreciated. Thanks.
Config (anonymized)
routing-options {
static {
route 192.168.5.0/24 {
next-hop 192.168.197.1;
retain;
no-readvertise;
}
route 192.168.0.0/16 next-hop 192.168.199.201;
route 0.0.0.0/0 next-hop 192.168.199.198;
}
autonomous-system 5406x;
}
protocols {
bgp {
graceful-restart;
group eBGP {
type external;
export adv-bgp;
neighbor 192.168.199.198 {
authentication-key "$9$jXim5Fn9u01n6Au1Iyr4oJ"; ## SECRET-DATA
peer-as 1214x;
}
neighbor 10.124.44.250 {
preference 180;
local-address 10.124.44.251;
peer-as 646x;
local-as 5406x;
------------------------------
JEFF ROWAN
------------------------------