The bestroute med-none-as-maximum command enables the Multi_Exit Discriminator (MED) value to be taken as the maximum value, 4294967295. The command is used when BGP selects the optimal route but there is no MED value in route attributes.
The undo bestroute med-none-as-maximum command restores the default setting.
By default, the MED value is 0 if there is no MED in the routes attributes.
BGP view, BGP-IPv4 unicast address family view, BGP-IPv6 unicast address family view, BGP-VPN instance IPv4 address family view, BGP-VPN instance IPv6 address family view
Usage Scenario
The bestroute med-none-as-maximum command takes effect in BGP route selection and is used only when the MED is null in the route attributes. If the MED is null and the bestroute med-none-as-maximum command is not run, the system probably cannot select an optimal route.
Configuration Impact
During BGP route selection, if the bestroute med-none-as-maximum command is run, a route without any MED is assigned the maximum MED of 4294967295.