R0106-HP MSR Router Series MPLS Command Reference(V7)
66
Views
LDP view, LDP-VPN instance view
Predefined user roles
network-admin
Parameters
pv-number: Specifies the path vector limit in the range of 1 to 32.
Usage guidelines
LDP adds LSR ID information in a label request or label mapping message. Each LSR checks whether its
LSR ID is contained in the message.
• If it is not, the LSR adds its own LSR ID into the message.
• If it is, the LSR considers that a loop occurs and terminates LSP establishment.
In addition, when the number of LSR IDs in the message reaches the path vector limit, LDP also considers
that a loop occurs and terminates LSP establishment.
Examples
# Set the path vector limit as 3 for LDP loop detection on the public network.
<Sysname> system-view
[Sysname] mpls ldp
[Sysname-ldp] pv-limit 3
Related commands
• display mpls ldp parameter
• loop-detect
• maxhops
reset mpls ldp
Use reset mpls ldp to reset LDP sessions.
Syntax
reset mpls ldp [ vpn-instance vpn-instance-name ] [ peer peer-id ]
Views
User view
Predefined user roles
network-admin
Parameters
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string
of 1 to 31 characters. The command resets the LDP sessions in the specified VPN. If you do not specify
a VPN instance, the command resets the LDP sessions in the public network.
peer peer-id: Specifies a peer by its LSR ID. If you do not specify a peer, the command resets all LDP
sessions in the specified VPN instance or the public network.
Usage guidelines
Resetting an LDP session deletes and reestablishes the session and all LSPs based on the session.