LDP authentication can be configured to improve the security of the connection of an LDP session. LDP authentication is configured on LSRs at both ends of an LDP session.
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, 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.
You can configure either LDP MD5 authentication or LDP keychain authentication based on their separate characteristics:
Keychain authentication and MD5 authentication cannot be both configured on a single LDP peer.
system-view
mpls ldp
md5-password { plain | cipher } peer-lsr-id password
The password can be set in either explicit text or cipher text. An explicit text password is a pre-configured character string that is directly recorded in a configuration file. A cipher text password is a character string that is encrypted using a specified algorithm and recorded in a configuration file.
By default, LDP MD5 authentication is not performed between LDP peers.