Command Manual – BGP
H3C S9500 Series Routing Switches
1.1.60 peer password
Syntax
peer { group-name | ip-address } password { cipher | simple } password
undo peer { group-name | ip-address } password
View
BGP view, BGP-VPN instance view
Default Level
2: System level
Parameters
group-name: Name of a peer group.
ip-address: IP address of a peer.
cipher: Displays the configured password in cipher text format.
simple: Displays the configured password in plain text format.
password: Password, a string of 1 to 80 characters when the keyword simple is used,
or when keyword cipher is included and plain text password is input; a string of 24 to
108 characters when cipher text password and the keyword cipher are used.
Description
Use the peer password command to configure BGP to perform MD5 authentication
when a TCP connection is being established with a peer/peer group.
Use the undo peer password command to disable the function.
By default, no MD5 authentication is performed for TCP connection establishment.
Once MD5 authentication is enabled, both parties must be configured with the same
authentication mode and password. Otherwise, the TCP connection will not be set up.
Examples
# In BGP view, perform MD5 authentication on the TCP connection between the local
device 10.1.100.1 and the peer device 10.1.100.2.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer 10.1.100.2 password simple aabbcc
# Perform the similar configuration on the peer.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer 10.1.100.1 password simple aabbcc
Chapter 1 BGP Configuration Commands
1-61