bgp default local-preference

Syntax

bgp default local-preference <NUMBER>

no bgp default local-preference <NUMBER>

Description

Configures the default local preference value for BGP learned routes.

Any changes in BGP configuration are applied by restarting the current BGP sessions in the VRFs.

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

Command context

config-router

Parameters

<NUMBER>

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

Authority

Administrators

Examples

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