In a BGP deployment, your FortiGate is receiving routes from two different ISPs. You want to influence outbound traffic to prefer ISP1 for specific destinations. Which BGP attribute should you modify?
Trap 1: Weight
Weight is local to the FortiGate and is not advertised to either ISP, so it cannot steer traffic across two external peers; it only ranks routes learned from neighbours on the same device. It is tempting because it is the first attribute in the best-path order, and would be correct for preferring one of two routes received from the same ISP.
Trap 2: AS-Path
AS-Path prepending affects inbound traffic, influencing how remote autonomous systems choose the path towards you, not which ISP your FortiGate selects for outbound destinations. It is tempting because it is a common traffic-engineering tool, and would be correct when you want ISP1 to be preferred by the internet for your advertised prefixes.
Trap 3: Multi-Exit Discriminator (MED)
MED influences inbound traffic for external peers.
- A
Weight
Why it fails: Weight is local to the FortiGate and is not advertised to either ISP, so it cannot steer traffic across two external peers; it only ranks routes learned from neighbours on the same device. It is tempting because it is the first attribute in the best-path order, and would be correct for preferring one of two routes received from the same ISP.
- B
Local Preference
Local Preference is exchanged between iBGP peers and selects the preferred exit point for outbound traffic. Raising it on routes learned from ISP1 makes those paths win best-path selection for the specified destinations, satisfying the stem's outbound preference requirement.
- C
AS-Path
Why it fails: AS-Path prepending affects inbound traffic, influencing how remote autonomous systems choose the path towards you, not which ISP your FortiGate selects for outbound destinations. It is tempting because it is a common traffic-engineering tool, and would be correct when you want ISP1 to be preferred by the internet for your advertised prefixes.
- D
Multi-Exit Discriminator (MED)
Why it fails: MED influences inbound traffic for external peers.