The loop-detect command enables a device to advertise the capability of loop detection during the initialization of an LDP session.
The undo loop-detect command disables a device from advertising the capability of loop detection during the initialization of an LDP session.
By default, a device cannot advertise the capability of loop detection during the initialization of an LDP session.
The switch does not support the loop detection function. In the scenario where its neighbor supports the loop detection function and requires that the notification about whether the loop detection function is enabled be consistent on the two ends, run the loop-detect command to ensure that the switch sets up an LDP session with this neighbor.
Though the loop-detect command is run, the switch still does not support the LDP loop detection function but only has the loop detection negotiation capability.