Configuring IGP-based LDP Automatic Configuration

IGP-based LDP automatic configuration reduces configuration workloads and ensures correct configurations.

Usage Scenario

To configure IGP-based MPLS LDP, you need to enable MPLS LDP globally first and then on the interfaces that need the function. If a large number of interfaces need MPLS LDP, you need to configure them one by one, which is time-consuming and prone to configuration incorrectness.

To address this issue, configure IGP-based LDP automatic configuration. With IGP-based LDP automatic configuration, MPLS LDP is enabled automatically on IGP-capable interfaces after MPLS LDP is enabled globally.

Pre-configuration Tasks

Before configuring IGP-based LDP automatic configuration, complete the following tasks:

  • Configure basic IGP functions.

  • Enable MPLS and MPLS LDP globally.

Procedure

  • Configure IS-IS LDP automatic configuration
    1. Run system-view

      The system view is displayed.

    2. Run isis [ process-id ]

      The IS-IS view is displayed.

    3. Run mpls ldp auto-config

      IGP-based LDP automatic configuration is enabled on IS-IS interfaces.

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

    4. Run commit

      The configuration is committed.

  • Configure OSPF LDP automatic configuration
    1. Run system-view

      The system view is displayed.

    2. Run ospf

      The OSPF view is displayed.

    3. Run mpls ldp auto-config

      IGP-based LDP automatic configuration is enabled on OSPF interfaces.

      After the command is run, 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.

    4. Run commit

      The configuration is committed.

Verifying the IGP-Based LDP Automatic Configuration

After configuring IGP-based LDP automatic configuration, check the configurations.
  • Run the display mpls ldp interface [ interface-type interface-name | verbose | all ] command to check information about MPLS LDP-enabled interfaces.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >