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.NexthopforanEBGPsessionisthe
IPaddressoftheBGPneighborthatannouncedtheroute.NexthopforIBGPsessionsiseitherthe
BGPneighborthatannouncedtheroute(forroutesthatoriginateinsidetheAS)ortheBGP
neighborfromwhichtheroutewaslearned(forroutesinjectedintotheASviaEBGP).
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

Thiscommand��modifiesthevalueofthelocalpreferenceattributeinaBGProutingupdate
message.ThisparameterimpactstheBGProuteselectionprocessfortrafficleavinganAS.Besure
thatamatchclausehasbeenspecified.
Localpreferenceindicatesprioritygiventoaparticularroutewhenmorethanonerouteexiststo
thesamedestination.Ahigherlocalpreferenceindicatesamorepreferredroute.Localpreference
islocaltothisautonomoussystemandisexchangedonlywithIBGPpeers.
Syntax
set local-preference value
value ThenexthopIPaddress.
value Preferencevalue,rangingfrom0to2147483647.