The bestroute med-none-as-maximum command configures BGP to assign the maximum Multi Exit Discriminator (MED), 4294967295, to a route without an 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 an MED in route selection.
BGP view, BGP-IPv4 unicast address family view, BGP-IPv4 multicast address family view, BGP-VPN instance IPv4 address family view, BGP-IPv6 unicast 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.