Enterasys Networks XSR CLI Router User Manual


 
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
relevantupdateswillhavethevalueoftheir localpreferencesetto400,whichis
higherthanthe
defaultof100.AssumingthatalloftheBGProuteselectioncriteriaremainthesame,theroutes
withthehighestlocalpreferencewillbechosenasthebestroutestotheidentifieddestinations.
This,however,appliesonlyinmultihomedASsasthelocalpreferenceattributeimpacts
only
whichwaythetrafficleavesanASiftherearemultipleexitpointsfromit.
set metric
Thiscommandmodifiesthemetricassociatedwithroutesthatmatchaparticularroutemap.This
commandcanalsobeusedtomanipulatethevalueoftheMEDformatchingBGProutes.Besure
thatamatchclausehasbeenspecified.
Metricsarevaluesthattherouterusestoindicatepreferredpaths
tonetworks.Updateswithnon
zerometricsareusedforrouteselectioninsidetheAS.BGPautomaticallycomparesmetricsfor
routestointernalneighbors.Youcan usemetrictoselectthebestpathwhentherearemultiple
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.