[c-nsp] An attribute with less priority than local preference for choosing a best path.
Nick Hilliard
nick at foobar.org
Fri Jun 3 12:02:54 EDT 2022
Drew Weaver wrote on 03/06/2022 16:48:
> Would it be better to adjust MED?
MED tends to be a better idea because it will accumulate the IGP metric
with the BGP metric, which means you can fine-tune your routing in a
dynamic basis in a way that you can't do with just localpref.
If you use MED, then you probably want:
router bgp xxxx
bgp bestpath med always
Otherwise the best path selection algorithm will select the oldest route
in favour of a MED.
The selection algorithm is documented here:
> https://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/13753-25.html
Worth reading. Localpref overrides as-path length. MEDs don't.
If you're a leaf network, you may also want to normalise the origin type
to either IGP or EGP. Some transit providers change theirs to IGP,
which will cause traffic to unnaturally swing over to them, so higher
sales for them.
Nick
More information about the cisco-nsp
mailing list