BGP
MED (multi-exit discriminator)
A BGP value a neighbour attaches to ask which of several links into it you should use.
MED is a number a neighbouring AS attaches to a BGP route to say which of its links you should use. Lower wins:
it announces the same prefix on both links, set metric 50 on one and 100 on the other, and you use the lower. It
is a request: your local preference and AS path length count first, and by default it compares only routes from the
same neighbouring AS.
Read next
- Local preference A BGP value an AS sets on routes it receives to choose its own way out, checked before the AS path.
- BGP The protocol between autonomous systems: how the networks of the internet find each other.
- AS path The list of autonomous systems a BGP route crossed: used to choose paths and to prevent loops.