BGP Configuration Commands
XSR CLI Reference Guide 6-91

bgp default local-preference

Thiscommandchangesthedefaultlocalpreferencevalue.Thepathwiththehighestlocal
preferencevalueispreferredovercompetingpathstothesamedestinationprovidedthatall
higherrankingrouteselectioncriteriaofthosepathsarethesame.Thelocalpreferencevaluefor
thepathissenttoallroutersandaccessserversinthelocalAS.
Syntax
bgp default local-preference value
Syntax of the “no” Form
Thenoformofthiscommandrevertstothelocalpreferencedefault:
no bgp default local-preference
Mode
Routerconfiguration:XSR(config-router)#
Default
100
Example
ThisexampleconfigurestheBGPdefaultlocalpreferenceof300forBGPprocess100.Thissetting
indicatesthatallroutesthisrouteradvertisestoitsinternalBGPneighborswillhavealocal
preferenceof300.
XSR(config)#router bgp 100
XSR(config-router)#bgp default local-preference 300

distance bgp

ThiscommandsetstheBGProutepreference‐administrativedistance‐foritsexternaland
internalroutessubmittedtotheroutingtable.
Syntax
distance bgp external internal
Syntax of the “no” Form
Thenoformofthecommandremovestheconfiguredvalue:
no distance bgp
value Localpreferencevalue,rangingfrom0to4294967295.
external TheadministrativedistanceforexternalBGProutes‐thoselearned
fromneighborsexternaltotheAS‐rangingfrom1to240.
internal TheadministrativedistanceforinternalBGProutes‐thoselearned
fromneighborswithinthesameAS‐rangingfrom1to240.