
94
Examples
# Specify that all routing entries can trigger establishment of LDP LSPs.
<Sysname> system-view
[Sysname] mpls
[Sysname-mpls] lsp-trigger all
lsr-id
Description
Use the
lsr-id
command to configure an LDP LSR ID.
Use the
undo lsr-id
command to remove a configured LDP LSR ID and all LDP sessions.
By default, the LDP LSR ID takes the value of the MPLS LSR ID.
Syntax
lsr-id
lsr-id
undo lsr-id
View
MPLS LDP view, MPLS LDP VPN instance view
Default level
2: System level
Parameters
lsr-id
: Specifies the LDP LSR ID.
Examples
# Configure the LDP LSR ID of the public network LDP instance as 2.2.2.3.
<Sysname> system-view
[Sysname] mpls ldp
[Sysname-mpls-ldp] lsr-id 2.2.2.3
# Configure the LDP LSR ID of LDP instance
vpn1
as 4.2.2.3.
<Sysname> system-view
[Sysname] mpls ldp vpn-instance vpn1
[Sysname-mpls-ldp-vpn-instance-vpn1] lsr-id 4.2.2.3
md5-password
Description
Use the
md5-password
command to enable LDP MD5 authentication and set the password.
Use the
undo md5-password
command to restore the default.
By default, LDP MD5 authentication is disabled.
The password configured locally must be the same as that configured on the peer.
Changing the password will cause the sessions and all LSPs based on the sessions to be removed.
This command takes effect only after MPLS LDP is enabled in the corresponding view.