bgp default local-preference

Syntax

bgp default local-preference <NUMBER>

no bgp default local-preference

Description

Default local preference value for BGP learned routes. Any changes in BGP configuration are applied by restarting the current BGP sessions on the VRFs.

The no form of this command sets the local preference to the default value of 100.

Command context

config-bgp

Parameters

<NUMBER>

Specifies the local preference value. Range: 0 to 4294967295. Default: 100.

Authority

Administrators or local user group members with execution rights for this command.

Examples

switch(config-bgp)# bgp default local-preference 20
All current BGP sessions in VRF default will be restarted.
Do you want to continue (y/n)?
switch(config-bgp)# no bgp default local-preference
All current BGP sessions in VRF default will be restarted.
Do you want to continue (y/n)?