The md5-password peer-group command enables LDP MD5 authentication in a batch for a specified LDP peer group.
The undo md5-password peer-group command disables LDP MD5 authentication in a batch for a specified LDP peer group.
By default, MD5 authentication in a batch is disabled for all peer groups.
Parameter | Description | Value |
---|---|---|
ip-prefix-name |
Specifies the name of an IP prefix list. The IP prefix list name is configured using the ip ip-prefix command. |
The value is a string of 1 to 169 case-sensitive characters. It cannot contain spaces. The string can contain spaces if it is enclosed with double quotation marks ("). |
password |
Specifies an authentication password.
|
A password must not contain spaces. A simple text password is a string of 1 to 255 characters. A ciphertext password is a string of 1 to 255 characters. An MD5 ciphertext password is 20 bits to 432 bits long. The string can contain spaces if it is enclosed with double quotation marks ("). |
cipher |
Indicates a ciphertext password. |
- |
password-cipher |
Specifies an authentication password. |
A password must not contain spaces. The string can contain spaces if it is enclosed with double quotation marks ("). |
plain |
Indicates a simple text password. A simple text password is saved in simple text in a configuration file. This format poses risks. A ciphertext password is recommended. To improve device security, periodically modify the password. |
- |
Usage Scenario
MD5 authentication can be configured for a TCP connection over which an LDP session is established, improving security. LDP MD5 authentication generates a unique digest for an information segment to prevent LDP packets from being modified. LDP MD5 authentication is stricter than common checksum verification for TCP connections.
If a great number of LDP peers are configured, run the md5-password peer-group command to enable MD5 authentication in a batch for LDP peers in a specified peer group. An IP prefix list can be specified to define the range of IP addresses in a group.Prerequisites
An IP prefix list has been configured using the ip ip-prefix command.
Configuration Impact
After the md5-password peer-group command is run, MD5 authentication takes effect on a specified LDP peer group. If MD5 authentication fails, an LDP session fails to be established.
Precautions
<HUAWEI> system-view [~HUAWEI] ip ip-prefix list1 permit 4.4.4.4 32 [*HUAWEI] mpls [*HUAWEI-mpls] quit [*HUAWEI] mpls ldp [*HUAWEI-mpls-ldp] md5-password cipher peer-group list1 Huawei-123