LDP PW configuration example

Network requirements

Configure VPLS on each PE, and establish LDP PWs between the PEs to interconnect the CEs.

Figure 85: Network diagram

Configuration procedure

  1. Configure an IGP and public tunnels on each PE. (Details not shown.)

  2. Configure PE 1:

    # Configure basic MPLS.

    <PE1> system-view
    [PE1] interface loopback 0
    [PE1-LoopBack0] ip address 1.1.1.9 32
    [PE1-LoopBack0] quit
    [PE1] mpls lsr-id 1.1.1.9
    [PE1] mpls ldp
    [PE1-ldp] quit
    

    # Enable L2VPN.

    [PE1] l2vpn enable
    

    # Configure VSI aaa that uses LDP as the PW signaling protocol, and establish a PW to PE 2 and PE 3, respectively.

    [PE1] vsi aaa
    [PE1-vsi-aaa] pwsignaling ldp
    [PE1-vsi-aaa-ldp] peer 2.2.2.9 pw-id 500
    [PE1-vsi-aaa-ldp-2.2.2.9-500] quit
    [PE1-vsi-aaa-ldp] peer 3.3.3.9 pw-id 500
    [PE1-vsi-aaa-ldp-3.3.3.9-500] quit
    [PE1-vsi-aaa-ldp] quit
    [PE1-vsi-aaa] quit
    

    # Create service instance 10 on Ten-GigabitEthernet 1/0/1 to match all packets.

    [PE1] interface ten-gigabitethernet1/0/1
    [PE1-Ten-GigabitEthernet1/0/1] service-instance 10
    [PE1-Ten-GigabitEthernet1/0/1-srv10] encapsulation default
    

    # Bind service instance 10 to the VSI aaa.

    [PE1-Ten-GigabitEthernet1/0/1-srv10] xconnect vsi aaa
    
  3. Configure PE 2:

    # Configure basic MPLS.

    <PE2> system-view
    [PE2] interface loopback 0
    [PE2-LoopBack0] ip address 2.2.2.9 32
    [PE2-LoopBack0] quit
    [PE2] mpls lsr-id 2.2.2.9
    [PE2] mpls ldp
    [PE2-ldp] quit
    

    # Enable L2VPN.

    [PE2] l2vpn enable
    

    # Configure VSI aaa that uses LDP as the PW signaling protocol, and establish a PW to PE 1 and PE 3, respectively.

    [PE2] vsi aaa
    [PE2-vsi-aaa] pwsignaling ldp
    [PE2-vsi-aaa-ldp] peer 1.1.1.9 pw-id 500
    [PE2-vsi-aaa-ldp-1.1.1.9-500] quit
    [PE2-vsi-aaa-ldp] peer 3.3.3.9 pw-id 500
    [PE2-vsi-aaa-ldp-3.3.3.9-500] quit
    [PE2-vsi-aaa-ldp] quit
    [PE2-vsi-aaa] quit
    

    # Create service instance 10 on Ten-GigabitEthernet 1/0/1 to match all packets.

    [PE2] interface ten-gigabitethernet1/0/1
    [PE2-Ten-GigabitEthernet1/0/1] service-instance 10
    [PE2-Ten-GigabitEthernet1/0/1-srv10] encapsulation default
    

    # Bind service instance 10 to the VSI aaa.

    [PE2-Ten-GigabitEthernet1/0/1-srv10] xconnect vsi aaa
    
  4. Configure PE 3:

    # Configure basic MPLS.

    <PE3> system-view
    [PE3] interface loopback 0
    [PE3-LoopBack0] ip address 3.3.3.9 32
    [PE3-LoopBack0] quit
    [PE3] mpls lsr-id 3.3.3.9
    [PE3] mpls ldp
    [PE3-ldp] quit
    

    # Enable L2VPN.

    [PE3] l2vpn enable
    

    # Configure VSI aaa that uses LDP as the PW signaling protocol, and establish a PW to PE 1 and PE 2, respectively.

    [PE3] vsi aaa
    [PE3-vsi-aaa] pwsignaling ldp
    [PE3-vsi-aaa-ldp] peer 1.1.1.9 pw-id 500
    [PE3-vsi-aaa-ldp-1.1.1.9-500] quit
    [PE3-vsi-aaa-ldp] peer 2.2.2.9 pw-id 500
    [PE3-vsi-aaa-ldp-2.2.2.9-500] quit
    [PE3-vsi-aaa-ldp] quit
    [PE3-vsi-aaa] quit
    

    # Create service instance 10 on Ten-GigabitEthernet 1/0/1 to match all packets.

    [PE3] interface ten-gigabitethernet1/0/1
    [PE3-Ten-GigabitEthernet1/0/1] service-instance 10
    [PE3-Ten-GigabitEthernet1/0/1-srv10] encapsulation default
    

    # Bind service instance 10 to the VSI aaa.

    [PE3-Ten-GigabitEthernet1/0/1-srv10] xconnect vsi aaa
    

Verifying the configuration

# Execute the display l2vpn pw verbose command on PE 1. The output shows that two LDP PWs in up state have been established.

[PE1] display l2vpn pw verbose
VSI Name: aaa
  Peer: 2.2.2.9          PW ID: 500
    Signaling Protocol  : LDP
    Link ID             : 8          PW State : Up
    In Label            : 131179     Out Label: 131179
    MTU                 : 1500
    PW Attributes       : Main
    VCCV CC             : -
    VCCV BFD            : -
    Tunnel Group ID     : 0x1800000260000000
    Tunnel NHLFE IDs    : 138
  Peer: 3.3.3.9          PW ID: 500
    Signaling Protocol  : LDP
    Link ID             : 9          PW State : Up
    In Label            : 131178     Out Label: 131177
    MTU                 : 1500
    PW Attributes       : Main
    VCCV CC             : -
    VCCV BFD            : -
    Tunnel Group ID     : 0x1800000360000001
    Tunnel NHLFE IDs    : 139