BGP Configuration Commands
6-98 Configuring the Border Gateway Protocol
Example
Thefollowingexamplesetstherouterat192.168.1.1asthenexthop:
XSR(config)#router bgp 100
XSR(config-router)#neighbor 192.168.1.1 remote-as 101
XSR(config-router)#neighbor 192.168.1.1 next-hop-self

neighbor password

ThiscommandsetsapasswordforMessageDigest5(MD5)authenticationontheTCPconnection
betweentheXSRthatthiscommandisenteredonandaBGPneighbor.Thesamepasswordmust
beconfiguredonbothrouters.Whenapasswordisconfiguredforaneighbor,theexistingsession
isreplacedbyanewsession.
Syntax
neighbor {ip-address | peer-group-name} password password-value
Syntax of the “no” Form
Thiscommand’snoformremovesthepasswordforthespecifiedrouter:
no neighbor {ip-address | peer-group-name} password password-value
Mode
Routerconfiguration:XSR(config-router)#
Default
Noauthentication
Example
Thefollowingexampleaddsapasswordforthespecifiedrouter:
XSR(config)#router bgp 100
XSR(config-router)#neighbor 192.168.1.1 remote-as 101
XSR(config-router)#neighbor 192.168.1.1 password 123456
ip-address NeighborsIPaddress.
peer-group-name BGPpeergroupbyname.Range:1to64characters.
password-value Alphanumericpassword.Rangeis130characters.