BGP default route announcement problem.
- September 11, 2020
- 3 replies
- 8617 views
Hello we have a BGP WAN connection with two interfaces - primary and secondary. We use weighting and prepending on these to prioritise the primary interface over the secondary. See below config. We have just tried to advertise a statically configured default route out this pair of WAN interfaces by simply adding the command 'set-capability-default-originate enable' on each one (see attached screenshot). The default route was advertised. However this seemed to result in default route flapping i.e. BGP neighbours were sending default route traffic in to us via both our primary and secondary WAN interfaces (inconsistent behaviour). I do not understand how this could happen as we are using prepending on our secondary interface to force inbound traffic to only use the primary interface. Are there some commands we were missing on our WAN interfaces ? To clarify, we are advertising a default route on both our primary and backup WAN connections from this Fortigate because this particular Fortigate is the Internet gateway for the WAN.
The reason I am advertising it on both links is in case of us losing the primary connection and the secondary taking over i.e. redundancy.
As per my config, we are using AS prepending and weight to prefer the primary connection.
config router bgp set as 65100 set router-id 192.168.3.105 set network-import-check disable config neighbor edit "192.168.3.110" set remote-as 7714 set weight 100 next edit "192.168.3.118" set remote-as 7714 set route-map-out "xxx-prepend" next end config router route-map edit "xxx-prepend" config rule edit 10 set set-aspath "65100 65100 65100" next end next end
