No relevant resource is found in the selected language.
Your browser version is too early. Some functions of the website may be unavailable. To obtain better user experience, upgrade the browser to the latest version.
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document.
Note: Even the most advanced machine translation cannot match the quality of professional translators.
Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Enabling Synchronization Between LDP and IGP
Enabling Synchronization Between LDP and IGP
Context
Synchronization between LDP and IGP
can be configured in either of the following modes:
Enable this function in the interface view.
This mode
allows synchronization between LDP and IGP to be enabled on interfaces.
This mode applies to the scenario where a few interfaces need to support
this function.
Enable this function in an IGP process.
This mode allows
synchronization between LDP and IGP to be enabled on all interfaces
in the IGP process. This mode applies to the scenario where many interfaces
on a node need to support this function.
Procedure
If OSPF is used as an IGP, perform the
following steps:
Enable synchronization between LDP and OSPF on an interface.
Run system-view
The system view is displayed.
Run interfaceinterface-typeinterface-number
The interface view is displayed.
On an Ethernet interface, run undo portswitch
The interface is switched to Layer 3 mode.
By default, an Ethernet interface works in Layer 2 mode.
The mode switching function takes effect when the interface only has attribute configurations (for example, shutdown and description configurations). Alternatively, if configuration information supported by both Layer 2 and Layer 3 interfaces exists (for example, mode lacp and lacp system-id configurations), no configuration that is not supported after the working mode of the interface is switched can exist. If unsupported configurations exist on the interface, delete the configurations first and then run the undo portswitch command.
If many Ethernet interfaces need to be switched to Layer 3 mode, run the undo portswitch batchinterface-type { interface-number1 [ tointerface-number2 ] } &<1-10> command in the system view to switch these interfaces to Layer 3 mode in batches.
Run ospf ldp-sync
Synchronization between LDP and OSPF is enabled on the protected
interface.
By default, synchronization between LDP and OSPF
is disabled on an interface.
Run commit
The configuration is committed.
Enable synchronization between LDP and OSPF in an OSPF process.
Run system-view
The system view is displayed.
Run ospf [ process-id ]
A specified OSPF process is started and the OSPF view is displayed.
process-id specifies an OSPF process. If process-id is not specified, the default OSPF process ID
of the system is 1.
Run areaarea-id
The OSPF area view is displayed.
Run ldp-sync enable
Synchronization between LDP and OSPF is enabled on all
interfaces in the specified OSPF area.
By default, synchronization
between LDP and OSPF is disabled on all interfaces in an OSPF area.
Run commit
The configuration is committed.
If IS-IS is used as an IGP, perform
the following steps:
Enable synchronization between LDP and IS-IS on an interface.
Run system-view
The system view is displayed.
Run interfaceinterface-typeinterface-number
The interface view is displayed.
On an Ethernet interface, run undo portswitch
The interface is switched to Layer 3 mode.
By default, an Ethernet interface works in Layer 2 mode.
The mode switching function takes effect when the interface only has attribute configurations (for example, shutdown and description configurations). Alternatively, if configuration information supported by both Layer 2 and Layer 3 interfaces exists (for example, mode lacp and lacp system-id configurations), no configuration that is not supported after the working mode of the interface is switched can exist. If unsupported configurations exist on the interface, delete the configurations first and then run the undo portswitch command.
If many Ethernet interfaces need to be switched to Layer 3 mode, run the undo portswitch batchinterface-type { interface-number1 [ tointerface-number2 ] } &<1-10> command in the system view to switch these interfaces to Layer 3 mode in batches.
Run isis enableprocess-id
IS-IS is enabled.
Run isis ldp-sync
Synchronization between LDP and IS-IS is enabled on the protected
interface.
By default, synchronization between LDP and IS-IS
is disabled on an interface.
Run commit
The configuration is committed.
Enable synchronization between LDP and IS-IS in an IS-IS process.
Run system-view
The system view is displayed.
Run isis [ process-id ]
A specified IS-IS process is started and the IS-IS view is displayed.
process-id specifies an IS-IS process. If process-id is not specified, the default IS-IS process
ID of the system is 1.
Run ldp-sync enable
Synchronization between LDP and IS-IS is enabled on all
interfaces in the specified IS-IS process.
By default, synchronization
between LDP and IS-IS is disabled on all interfaces in an IS-IS process.