loop-detect

Use loop-detect to enable loop detection.

Use undo loop-detect to disable loop detection.

Syntax

loop-detect

undo loop-detect

Default

Loop detection is disabled.

Views

LDP view

LDP-VPN instance view

Predefined user roles

network-admin

Usage guidelines

This command enables LDP to detect and terminate LSP loops. LDP uses hop count (see "maxhops") and path vector (see "pv-limit") for loop detection.

Use LDP loop detection only on networks with devices that do not support TTL mechanism such as ATM switches. Do not use LDP loop detection on other networks because it only results in extra LDP overhead.

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

# Enable LDP loop detection for the public network.

<Sysname> system-view
[Sysname] mpls ldp
[Sysname-ldp] loop-detect

Related commands

display mpls ldp parameter

maxhops

pv-limit