The ospf ldp-sync command enables synchronization between LDP and OSPF on an interface.
The undo ospf ldp-sync command disables synchronization between LDP and OSPF on an interface.
By default, synchronization between LDP and OSPF is disabled on an interface.
Run the ospf ldp-sync command to enable synchronization between LDP and OSPF to prevent traffic loss in the preceding problems. Run this command on the interfaces on both ends of the link between the node where the primary LSP and the backup LSP diverge from each other and its LDP peer on the primary LSP.
<HUAWEI> system-view [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] ospf ldp-sync
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] ospf ldp-sync