BGP Configuration Commands
XSR CLI Reference Guide 6-99

neighbor peer-group

ThiscommandcreatesaBGPpeergroupandassignsaBGPneighbortoapeergroup.
Syntax
neighbor {ip-address | peer-group-name} peer-group [peer-group-name]
Syntax of the “no” Form
Thenoformofthiscommandremovesthespecifedneighborpeergroup:
no neighbor {ip-address | peer-group-name} peer-group [peer-group-name]
Mode
Routerconfiguration:XSR(config-router)#
Example
ThefollowingexamplecreatespeergroupExternalGroupandassignsneighbor192.168.1.1topeer
groupExternalGroup:
XSR(config)#router bgp 100
XSR(config-router)#neighbor ExternalGroup peer-group
XSR(config-router)#neighbor 192.168.1.1 remote-as 101
XSR(config-router)#neighbor 192.168.1.1 peer-group ExternalGroup

neighbor remote-as

ThiscommandaddsanentrytotheBGPneighbortable.BGPrequiresmanualneighbor
configuration.TheconfigurationofneighborsonbothoftheneighboringBGProutersallowsa
BGPsessiontobesetupbetweentheroutersandallowstheexchangeofBGPupdatemessages.
ForexternalBGPneighbors,theIPaddressspecifiedisthatoftheneighborinterfacetotheshared
subnetbetweenrouters(unlessebgpmultihopisenabled).ForinternalBGPneighbors,the
neighborIPaddressisanyreachableIPaddressfromtherouter.
Syntax
neighbor {ip-address | peer-group-name} remote-as autonomous-system
Syntax of the “no” Form
Thenoformofthiscommandremovesthespecifiedentryfromthetable:
no neighbor {ip-address | peer-group-name} remote-as autonomous-system
ip-address NeighborsIPaddress.
peer-group-name BGPpeergroupbyname.Range:1to64characters.
ip-address NeighborsIPaddress.
peer-group-name BGPpeergroupbyname.Range:1to64characters.
autonomous-system ASbynumber,rangingfrom1to65535.