The mpls te loop-detection command enables the loop detection function while a tunnel is being set up.
The undo mpls te loop-detection command disables this function.
The loop detection function is disabled by default.
mpls te loop-detection
undo mpls te loop-detection
None
Tunnel interface view
2: Configuration level
To prevent loops, you can run the mpls te loop-detection command on the ingress of the MPLS TE tunnel to enable the loop detection function.
# Enable the loop detection when an MPLS TE tunnel is being set up.
<HUAWEI> system-view [HUAWEI] interface tunnel 1 [HUAWEI-Tunnel1] tunnel-protocol mpls te [HUAWEI-Tunnel1] mpls te loop-detection [HUAWEI-Tunnel1] mpls te commit