Concepts / BGP

BGP

MED (multi-exit discriminator)

Also called MED, multi-exit discriminator, BGP metric, set metric

A BGP value a neighbour attaches to ask which of several links into it you should use.

The neighbour's say in which link you use
The neighbour's say in which link you use

The neighbour announces the same prefix on both links with different MEDs, and you use the lower. It is only a request: your local preference and AS path length count first.

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.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab