The compare-different-as-med command enables MBGP to compare the MEDs in the routes of peers in different ASs.
The undo compare-different-as-med command restores the default configuration.
By default, MBGP does not compare the MEDs in the routes of peers in different ASs.
Usage Scenario
The command is used to control the MEDs to change the policy of MBGP route selection. If the compare-different-as-med command is run, MBGP will compare the MEDs of the routes from different ASs. If there are multiple reachable paths to the same destination, MBGP prefers the route with the smallest MED.