The Multi_Exit Discriminator (MED) attribute equals a metric used in an IGP. The MED attribute is used to determine the optimal route for traffic that enters an AS. The route with the smallest MED value is selected as the optimal route if the other attributes of the routes are the same.
The MED attribute equals a metric used in an IGP, and is used to determine the optimal route for traffic that enters an AS. If a BGP device obtains multiple routes from different EBGP peers and these routes have different next hops to the same destination, the BGP device will select the route with the smallest MED value.