BGP Set Commands
XSR CLI Reference Guide 6-119
Syntax of the “no” Form
Thenoformofthiscommandremovesthelocalpreferencevalue:
no set local-preference value
Mode
Routemapconfiguration:XSR(config-route-map)#
Default
Preferencevalue:100.
Example
Thefollowingexampleconfiguresthesetlocalpreferencevalueinthecontextofconfiguringa
routemapandmatch:
XSR(config)#route-map 1 permit 1
XSR(config-route-map)#match as-path 37
XSR(config-route-map)#set local-preference 400
Routemap1usesthematchaspathcommandthatisreferencinganaspathaccesslist37.Thislist
identifiestheBGProutingupdatestowhichthesetlocalpreferencecommandwillapply.The
relevantupdateswillhavethevalueoftheirlocalpreferencesetto400,whichishigherthanthe
defaultof100.AssumingthatalloftheBGProuteselectioncriteriaremainthesame,theroutes
withthehighestlocalpreferencewillbechosenasthebestroutestotheidentifieddestinations.
This,however,appliesonlyinmultihomedASsasthelocalpreferenceattributeimpactsonly
whichwaythetrafficleavesanASiftherearemultipleexitpointsfromit.

set metric

Thiscommandmodifiesthemetricassociatedwithroutesthatmatchaparticularroutemap.This
commandcanalsobeusedtomanipulatethevalueoftheMEDformatchingBGProutes.Besure
thatamatchclausehasbeenspecified.
Metricsarevaluesthattherouterusestoindicatepreferredpathstonetworks.Updateswithnon
zerometricsareusedforrouteselectioninsidetheAS.BGPautomaticallycomparesmetricsfor
routestointernalneighbors.Youcanusemetrictoselectthebestpathwhentherearemultiple
alternatives.Routeswithlowermetricvaluesaremorepreferred.
Syntax
set metric metric-value
Syntax of the “no” Form
Thenoformofthiscommandremovesthemetricvalue:
no set metric metric-value
metric-value Thevalueofthemetric,rangingfrom0to2,147,483,647.