Description | This article describes how the FortiGate behaves when the BGP 'bestpath-med-missing-as-worst' is enabled. |
Scope | FortiGate v7.0 and above. |
Solution |
Consider the following network diagram and its setup:
By default, FortiGate will choose the route with a lower MED, which in this case is from RTR2, according to the BGP best path route selection as shown below:
FortiGate # get router info bgp network 4.4.4.4 Original VRF 0
When the 'bestpath-med-missing-as-worst' setting is enabled in FortiOS BGP, FortiGate will change the MED value to 4294967294 for all the NLRI it receives that have no MED path attribute.
config router bgp set bestpath-med-missing-as-worst enable <----- end
After enabling the 'bestpath-med-missing-as-worst' setting, FortiGate changed the MED path attribute from R2 to 4294967294 and now prefers the path to RTR3.
FortiGate # get router info bgp network 4.4.4.4/32 Original VRF 0
|