R3303-HP HSR6800 Routers Layer 3 - IP Routing Command Reference
453
peer password
Use peer password to configure BGP to perform MD5 authentication when a TCP connection is being
established with a peer/peer group.
Use undo peer password to restore the default.
Syntax
peer { group-name | ipv6-address } password { cipher | simple } password
undo peer { group-name | ipv6-address } password
Default
No MD5 authentication is performed for TCP connection establishment.
Views
IPv6 address family view
Default command level
2: System view
Parameters
group-name: Name of a peer group, a string of 1 to 47 characters.
ipv6-address: IPv6 address of a peer.
cipher: Specifies a ciphertext password.
simple: Specifies a plaintext password.
password: Specifies the password, a case-sensitive string of 1 to 137 characters in cipher text, or 1 to 80
characters in plain text.
Usage guidelines
The MD5 authentication requires that the two parties have the same authentication mode and password
to establish a TCP connection. Otherwise, the TCP connection cannot be established due to
authentication failure.
For security purposes, all passwords, including passwords configured in plain text, are saved in cipher
text to the configuration file.
Examples
# Enable MD5 authentication for establishing TCP connection between the local device (1:2::3:3) and
peer device (1:2::3:4), and configure the authentication password as aabbcc.
• On the local device:
<Sysname> system-view
[Sysname] bgp 3
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer 1:2::3:4 password cipher aabbcc
• On the peer device:
<Sysname> system-view
[Sysname] bgp 4
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer 1:2::3:3 password cipher aabbcc