BGP evaluates Preferred-Value, Local-Preference, AS_Path, and Origin before MED during route selection. The default MED is 0, and a route with no MED is treated as having MED 0 unless bestroute med-none-as-maximum is configured; that command treats a missing MED as 4294967295. By default, MED is compared only among routes received from peers in the same AS; cross-AS MED comparison requires explicit configuration.
Community Discussion