< Home

Enabling MPLS LDP

Procedure

  • Configure SPEs.

    The following uses the configuration of Core_SPE1 on the core ring as an example. The configurations of Core_SPE2 and Core_SPE3 are similar to the configuration of Core_SPE1, and are not mentioned here.

    mpls lsr-id 172.16.0.5    //Configure an MPLS LSR ID. The IP address of a loopback interface is recommended.
    mpls    //Enable MPLS globally.
     label advertise non-null    //Disable PHP so that the egress node assigns labels to the penultimate hop properly.
    #
    mpls ldp    //Enable MPLS LDP globally.
    #
    interface Eth-Trunk4
     mpls
     mpls ldp    //Enable MPLS LDP on an interface.
    #
    interface Eth-Trunk5
     mpls
     mpls ldp    //Enable MPLS LDP on an interface.
    #
    interface Eth-Trunk17
     mpls
     mpls ldp    //Enable MPLS LDP on an interface.
    #
    interface XGigabitEthernet6/0/4
     mpls
     mpls ldp    //Enable MPLS LDP on an interface.
    #

  • Configure UPEs.

    The following uses the configuration of Site1_UPE1 as an example. The configurations of Site1_UPE2, Site2_UPE3, Site2_UPE4, Site3_UPE5, and Site3_UPE6 are similar to the configuration of Site1_UPE1, and are not mentioned here.

    mpls lsr-id 172.16.2.51    //Configure an MPLS LSR ID. The IP address of a loopback interface is recommended.
    mpls    //Enable MPLS globally.
     label advertise non-null     //Disable PHP so that the egress node assigns labels to the penultimate hop properly.
    #
    mpls ldp    //Enable MPLS LDP globally.
    #
    interface Eth-Trunk7
     mpls
     mpls ldp    //Enable MPLS LDP on an interface.
    #
    interface Eth-Trunk17
     mpls
     mpls ldp    //Enable MPLS LDP on an interface.
    #

Checking the Configuration

  • Run the display mpls ldp session all command to view the MPLS LDP session status. Using Core_SPE1 as an example, if the value of Status is Operational, an MPLS LDP session has been set up successfully.

    [Core_SPE1]display mpls ldp session all
    
     LDP Session(s) in Public Network
     Codes: LAM(Label Advertisement Mode), SsnAge Unit(DDDD:HH:MM)
     A '*' before a session means the session is being deleted.
     ------------------------------------------------------------------------------
     PeerID             Status      LAM  SsnRole  SsnAge      KASent/Rcv
     ------------------------------------------------------------------------------
     172.16.0.3:0       Operational DU   Passive  0000:00:56  226/226
     172.16.0.4:0       Operational DU   Active   0000:00:56  226/226
     172.16.2.51:0      Operational DU   Passive  0000:00:55  223/223
     172.16.2.86:0      Operational DU   Passive  0000:00:55  223/223
     ------------------------------------------------------------------------------
     TOTAL: 4 session(s) Found.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >