Enterasys Networks XSR CLI Router User Manual


 
BGP Configuration Commands
6-100 Configuring the Border Gateway Protocol
Mode
Routerconfiguration:XSR(config-router)#
Example
Thefollowingexampleconfigurestwoneighbors.Neighbor192.168.1.1isanexternalneighbor
sincetheASnumberof101differsfromtheASnumberfortherouter100.Neighbor192.168.2.1is
aninternalneighborsinceitresidesinthesameAS100.
XSR(config)#router bgp 100
XSR(config-router)#neighbor 192.168.1.1 remote-as 101
XSR(config-router)#neighbor 192.168.2.1 remote-as 100
neighbor route-map
ThiscommandappliesaroutemaptoroutesthatenterfromorexitoutofaBGPneighbororpeer
group.Theroutemapmustbeconfiguredfirst.
Syntax
neighbor {ip-address | peer-group-name} route-map route-map# {in | out}
Syntax of the “no” Form
Thenoformofthiscommanddeletesthespecifiedneighbor’sroutemap:
no neighbor {ip-address | peer-group-name} route-map route-map# {in | out}
Mode
Routerconfiguration:XSR(config-router)#
Example
Thefollowingexampleaddsaneighborroutemap:
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 in
Note: Perform a clear ip bgp neighbor <IP address> whenever this command is changed.
ip-address
Neighbor’sIPaddress.
peer-group-name
BGPpeergroupbyname.Range:1to64characters.
route-map#
Identifiestheroutemapnumber.Range:1199.
in
Routemapisappliedtoinboundroutes.
out
Routemapisappliedtooutboundroutes.