pv-limit
Use pv-limit to set the path vector limit.
Use undo pv-limit to restore the default.
Syntax
pv-limit pv-number
undo pv-limit
Default
The path vector limit is 32.
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.
The configuration of this command takes effect only on new LDP sessions. To apply the configuration to existing LDP sessions, you must reset the LDP sessions by using the reset mpls ldp command.
Examples
# Set the path vector limit to 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