Enterasys Networks XSR CLI Router User Manual


 
BGP Set Commands
6-118 Configuring the Border Gateway Protocol
XSR(config)#router bgp 100
XSR(config)#bgp dampening route-map 1
set ip next-hop
Thiscommandspecifieswheretooutputpacketsthatpassamatchclauseofaroutemapfor
policyrouting.ItmodifiesthevalueofthenexthopattributeinaBGProutingupdatemessage.
Thenexthopattributeidentifiesthenexthoptoreacharoute.NexthopforanEBGP
sessionisthe
IPaddressoftheBGPneighborthatannouncedtheroute.NexthopforIBGPsessionsiseitherthe
BGPneighborthatannouncedtheroute(forroutesthatoriginateinsidetheAS)ortheBGP
neighborfromwhichtheroutewaslearned (forroutesinjectedintotheAS via
EBGP).
Syntax
set ip next-hop value
Syntax of the “no” Form
Thenoformofthiscommandremovesthenexthopvalue:
no set ip next-hop value
Mode
Routemapconfiguration:XSR(config-route-map)#
Example
ThefollowingexamplesetstheIPnexthopattributeintheBGPupdatewhichmatches10.0.0.0
255.0.0.0to1.2.3.4:
XSR(config)#access-list 10 permit 10.0.0.0 255.0.0.0
XSR(config)#route-map 1 permit 1
XSR(config-route-map)#match ip address 10
XSR(config-route-map)#set ip next-hop 1.2.3.4
set local-preference
ThiscommandmodifiesthevalueofthelocalpreferenceattributeinaBGProutingupdate
message.ThisparameterimpactstheBGProuteselectionprocessfortrafficleavinganAS.Besure
thatamatchclausehasbeenspecified.
Localpreferenceindicatesprioritygiventoaparticularroutewhen morethanone
routeexiststo
thesamedestination.Ahigherlocalpreferenceindicatesamorepreferredroute.Localpreference
islocaltothisautonomoussystemandisexchangedonlywithIBGPpeers.
Syntax
set local-preference value
value
ThenexthopIPaddress.
value
Preferencevalue,rangingfrom0to2147483647.