$ ./guess_the_languageNetworking
Networking · hard · #279

How do BGP local preference and MED differ?

  1. Local-pref is higher-wins only for eBGP
  2. MED picks your exit; local-pref is sent out
  3. Both are compared before the AS path
  4. Local-pref picks your exit; MED hints entry
Local preference stays inside your AS and steers outbound traffic (higher wins). MED is sent to a neighbouring AS to suggest which link it should use to enter (lower wins).
Play Networking ▸