Enterasys Networks XSR CLI Router User Manual


 
BGP Set Commands
6-114 Configuring the Border Gateway Protocol
Syntax
match ip next-hop access-list-number
Syntax of the “no” Form
Thenoformofthiscommandremovesthematchnexthopvalue:
no match ip next-hop access-list-number
Mode
Routemapconfiguration:XSR(config-route-map)#
Default
NomatchingbasedonIPnexthop.
Example
ThefollowingexamplesetsthematchingIPnexthopto10:
XSR(config)#access-list 10 permit 1.2.3.4
XSR(config)#route-map 1 permit 1
XSR(config-route-map)#match ip next-hop 10
BGP Set Commands
Routemapsarecomprisedofsetsofmatchandsetcommands.Matchcommandsdefinethematch
criteriaforroutemaps.Routesthatmatchalldefinedmatchcriteriaareprocessedviaset
commandsandthosethatdonotmatchallofthedefinedmatchcriteriaintheroutemapare
ignored.
set as-path
ThiscommandincreasesthelengthoftheASpathattributefortheBGProutingupdatemessages
thatmeetthematchconditionsspecifiedwithinaroutemap.
ThelengthoftheASpathattributeinfluencestheBGProuteselectionprocessfordestinationsthat
canbereachedbymeansofmultiplepaths.AS
pathlengthistheonlyglobalBGPmetricthatyou
canusetoinfluencebestpathselection.ABGPspeakercaninfluencethebestpathselectionbya
peerbyvaryingthelengthoftheASpath.
Ifyoudonotsetlocalpreferenceorweight,ASpathlengthdetermineswhich
ofmultipleroutes
areselected.Routeswithlongerautonomoussystempathsarepreferred.Topreferapath,youcan
padtheautonomoussystempathbyprependingextraautonomoussystemnumbers.
Syntax
set as-path prepend as-path-string
access-list-number
TheACLtomatch,rangingfrom1to199.
prepend
InstructsthesystemtoattachtheaspathstringvaluetotheASpathofthe
routethatmatchestheroutemap.