The bestroute med-confederation command enables BGP to compare the Multi Exit Discriminator (MED) values of routes in a confederation when BGP selects the optimal route.
The undo bestroute med-confederation command restores the default settings.
By default, BGP compares the MED values of only the routes that are learned from peers in the same AS.
Usage Scenario
By default, BGP compares the MED values of only the routes that are learned from peers in the same AS (excluding confederation sub-ASs). To enable BGP to compare MED values of routes in a confederation when selecting the optimal route, run the bestroute med-confederation command.
Configuration Impact
After the bestroute med-confederation command is configured, BGP compares MED values only when AS_Path does not contain any external AS (AS that is not in the confederation) numbers.
For example, ASs 65000, 65001, 65002, and 65004 belong to the same confederation. Routes to the same destination are listed as follows: