The bestroute med-none-as-maximum command configures BGP to assign the maximum MED (4294967295) to a route without MED in route selection.
The undo bestroute med-none-as-maximum command restores the default configuration.
By default, BGP assigns 0 to a route without MED.
Usage Scenario
The bestroute med-none-as-maximum command takes effect during BGP route selection and is used only when no MED is carried by BGP routes. If no MED is carried and the bestroute med-none-as-maximum command is not run, the system cannot select the desired route as the optimal route.
Configuration Impact
During BGP route selection, if the bestroute med-none-as-maximum command is run, a route without MED is assigned the maximum MED (4294967295).
<HUAWEI> system-view [~HUAWEI] ip vpn-instance vpna [*HUAWEI-vpn-instance-vpna] ipv6-family [*HUAWEI-vpn-instance-vpna-af-ipv6] quit [*HUAWEI-vpn-instance-vpna] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] ipv6-family vpn-instance vpna [*HUAWEI-bgp-6-vpna] bestroute med-none-as-maximum