set protocols bgp default local-preference
The set protocols bgp default local-preference command defaults local preference value for BGP learned routes. Any changes in BGP configuration are applied by restarting the current BGP sessions on the VRFs.
The delete protocols bgp default local-preference command sets the local preference to the default value of 100.
Command Syntax
set protocol bgp [vrf <vrf-name>] default local-preference <preference-value>
delete protocols bgp [vrf <vrf-name>] default local-preference <preference-value>
Parameter
Parameter | Description |
vrf <vrf-name> | Optional. Specifies a VRF name. The value is a string. It’s a user-defined VRF set by the command set ip vrf <vrf-name> [description <string>]. |
local-preference <preference-value> | Specifies the local preference value. The value is an integer that ranges from 0 to 4294967295. The default value is 100. |
Example
• This example defaults local preference value for BGP learned routes to 20.
admin@XorPlus# set protocols bgp default local-preference 20 admin@XorPlus# commit
Copyright © 2024 Pica8 Inc. All Rights Reserved.