The md5-password command sets the password used to establish a TCP connection when an LDP session is being established. The password must be the same as that on the peer.
The undo md5-password command restores the default configuration.
By default, MD5 authentication is not performed during the establishment of an LDP session.
Parameter | Description | Value |
---|---|---|
peer-lsr-id |
Specifies the LSR ID of a peer. The LSR ID is used to identify the peer LSR. |
The LSR ID is in dotted decimal notation. |
password |
Specifies an authentication password.
|
The value is a string. It cannot contain spaces. A simple text key is 1 to 255 characters long; a ciphertext key is a string of 20 to 432 characters long. When double quotation marks are used around the string, spaces are allowed in the string. |
cipher |
Displays the password in cipher text. |
- |
password-cipher |
Specifies an authentication password. |
The value is a string, spaces not supported. |
plain |
Displays the password in simple text. If you configure a simple password, it will be saved in the configuration file in simple text that has a high security risk. Therefore, configuring a ciphertext password is recommended. To improve the device security, periodically change the password. |
- |
Usage Scenario
MD5 authentication can be configured for a TCP connection over which an LDP session is established, improving security. Note that the peers of an LDP session can be configured with different authentication modes (simple text or ciphertext mode), but must be configured with a single password.
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.Prerequisites
MPLS LDP has been enabled globally using the mpls ldp command in the system view.
Precautions