Enterasys Networks XSR CLI Router User Manual


 
BGP Set Commands
6-120 Configuring the Border Gateway Protocol
Mode
Routemapconfiguration:XSR(config-route-map)#
Default
Thedynamicallylearnedmetricvalue.
Example
Thefollowingexampledisplayshowthesetmetriccommandisusedtoupdatethevalueofthe
MEDvalueforBGProutesthatareadvertisedtoanexternalneighbor:
XSR(config)#access-list 66 permit 10.0.0.0 255.0.0.0
XSR(config)#route-map 1 permit 1
XSR(config-route-map)#match ip address 66
XSR(config-route-map)#set metric 20
XSR(config-route-map)#exit
XSR(config)#route-map 1 permit 2
XSR(config-route-map)#set metric 30
XSR(config-route-map)#exit
XSR(config)#router bgp 100
XSR(config-router)#neighbor 192.168.1.1 remote-as 101
XSR(config-router)#neighbor 192.168.1.1 route-map 1 out
ThesetmetriccommandisusedtochangethevalueoftheMED,whichimpactstheflowof
inboundtrafficintoamulti homedAS.Alloftheoutboundupdatesleavingthisrouterand
matchingACL66willhaveMEDvalueof20assignedtothem.Alloftheremainingupdates
will
havetheMEDvalueof30.AlowervalueofMEDispreferredintheBGProuteselectionprocess.
set origin
ThiscommandassignsavaluetotheoriginattributeintheBGProutingupdatemessagewhic h
impactsBGProuteselection.Ensurethatamatchclausehasbeenspecified.
Thisattributeindicateswherearoutingupdateisderived.BGPprefersrouteswiththelowest
origintype:IGPispreferredoverEGPand
EGPispreferredoverincomplete.
Syntax
set origin {igp | egp | incomplete}
Syntax of the “no” Form
ThenoformofthiscommandremovesBGPorigincoding:
no set origin {igp | egp | incomplete}
igp
SetsBGPorigincodetoInteriorGatewayProtocol(IGP).
egp
SetsBGPorigincodetoExteriorGatewayProtocol(EGP).
incomplete
SetsBGPorigincodetounknown.