default local-preference
Function
The default local-preference command sets the default local preference for BGP routes.
The undo default local-preference command restores the default configuration.
By default, the local preference for BGP routes is 100.
Parameters
Parameter | Description | Value |
---|---|---|
local-preference | Specifies the local preference for BGP routes. The greater the value, the higher the preference. | The value is an integer ranging from 0 to 4294967295. |
Views
BGP view, BGP-IPv4 unicast address family view, BGP-IPv4 multicast address family view, BGP-IPv6 unicast address family view
Usage Guidelines
Usage Scenario
The Local_Pref attribute is used to determine an optimal route for traffic before traffic leaves an AS. When the wireless access controller that runs BGP has multiple routes to the same destination, the wireless access controller selects the route with the highest local preference as the optimal route.
Precautions
If the wireless access controller is already configured with a default local preference for BGP routes, the configuration of a new default local preference will override the previous configuration and the new default local preference will overwrite the previous one.
The local preference is exchanged only between IBGP peers and is not advertised to other ASs.