ospf mpls ldp auto-config disable

Function

The ospf mpls ldp auto-config disable command disables MPLS LDP automatic configuration on an OSPF interface.

The undo ospf mpls ldp auto-config disable command restores the default configurations.

By default, if the mpls ldp auto-config command is run for an OSPF process, MPLS LDP is enabled automatically on all interfaces which can establish OSPF neighbor relationships in this OSPF process; otherwise, MPLS LDP automatic configuration is disabled on these interfaces.

Format

ospf mpls ldp auto-config disable

undo ospf mpls ldp auto-config disable

Parameters

None

Views

100GE interface view, 10GE interface view, 25GE sub-interface view, 25GE interface view, 400GE interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE electrical interface view, GMPLS-UNI interface view, Global VE sub-interface view, Tunnel interface view, VE sub-interface view, VLANIF interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ospf write

Usage Guidelines

Usage Scenario

After the mpls ldp auto-config command is run for an OSPF process, MPLS LDP is enabled automatically on all interfaces which can establish OSPF neighbor relationships in the OSPF process. If you want to disable MPLS LDP from an interface, run the ospf mpls ldp auto-config disable command in the interface view.

Precautions

The ospf mpls ldp auto-config disable command can be run when the mpls ldp auto-config command has not been run in the OSPF view, but the ospf mpls ldp auto-config disable command does not take effect on interfaces.

If the ospf mpls ldp auto-config disable command has been run when the mpls ldp auto-config command is run, the ospf mpls ldp auto-config disable command can take effect on interfaces.

Example

# Disable MPLS LDP automatic configuration on GigabitEthernet 0/1/0.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/0
[*HUAWEI-GigabitEthernet0/1/0] ospf enable area 1
[*HUAWEI-GigabitEthernet0/1/0] ospf mpls ldp auto-config disable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >