H-VPLS UPE dual homing configuration example

Network requirements

To improve reliability of the H-VPLS network, UPE establishes a U-PW with NPE 1 and NPE 2, respectively. The U-PW between UPE and NPE 1 is the primary PW and that between UPE and NPE 2 is the backup PW. The backup PW works only when the primary PW fails.

The H-VPLS uses LDP as the PW signaling protocol.

Figure 89: Network diagram

Configuration procedure

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

  2. Configure UPE:

    # Configure basic MPLS.

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

    # Enable L2VPN.

    [UPE] l2vpn enable
    

    # Configure VSI aaa that uses LDP as the PW signaling protocol, and establish the primary PW with NPE 1 and the backup PW to NPE 2.

    [UPE] vsi aaa
    [UPE-vsi-aaa] pwsignaling ldp
    [UPE-vsi-aaa-ldp] peer 2.2.2.2 pw-id 500
    [UPE-vsi-aaa-ldp-2.2.2.2-500] backup-peer 3.3.3.3 pw-id 500
    [UPE-vsi-aaa-ldp-3.3.3.3-500-backup] quit
    [UPE-vsi-aaa-ldp-2.2.2.2-500] quit
    [UPE-vsi-aaa-ldp] quit
    [UPE-vsi-aaa] quit
    

    # On interface Ten-GigabitEthernet 1/0/1 connected to CE 1, create a service instance and bind the service instance to VSI aaa.

    [UPE] interface ten-gigabitethernet 1/0/1
    [UPE-Ten-GigabitEthernet1/0/1] service-instance 1000
    [UPE-Ten-GigabitEthernet1/0/1-srv1000] encapsulation s-vid 10
    [UPE-Ten-GigabitEthernet1/0/1-srv1000] xconnect vsi aaa
    [UPE-Ten-GigabitEthernet1/0/1-srv1000] quit
    

    # On interface Ten-GigabitEthernet 1/0/2 connected to CE 2, create a service instance and bind the service instance to VSI aaa.

    [UPE] interface ten-gigabitethernet 1/0/2
    [UPE-Ten-GigabitEthernet1/0/2] service-instance 1000
    [UPE-Ten-GigabitEthernet1/0/2-srv1000] encapsulation s-vid 11
    [UPE-Ten-GigabitEthernet1/0/2-srv1000] xconnect vsi aaa
    [UPE-Ten-GigabitEthernet1/0/2-srv1000] quit
    
  3. Configure NPE 1:

    # Configure basic MPLS.

    <NPE1> system-view
    [NPE1] interface loopback 0
    [NPE1-LoopBack0] ip address 2.2.2.2 32
    [NPE1-LoopBack0] quit
    [NPE1] mpls lsr-id 2.2.2.2
    [NPE1] mpls ldp
    [NPE1–ldp] quit
    

    # Enable L2VPN.

    [NPE1] l2vpn enable
    

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

    [NPE1] vsi aaa
    [NPE1-vsi-aaa] pwsignaling ldp
    [NPE1-vsi-aaa-ldp] peer 1.1.1.1 pw-id 500 no-split-horizon
    [NPE1-vsi-aaa-ldp-1.1.1.1-500] quit
    [NPE1-vsi-aaa-ldp] peer 3.3.3.3 pw-id 500
    [NPE1-vsi-aaa-ldp-3.3.3.3-500] quit
    [NPE1-vsi-aaa-ldp] peer 4.4.4.4 pw-id 500
    [NPE1-vsi-aaa-ldp-4.4.4.4-500] quit
    [NPE1-vsi-aaa-ldp] quit
    [NPE1-vsi-aaa] quit
    
  4. Configure NPE 2:

    # Configure basic MPLS.

    <NPE2> system-view
    [NPE2] interface loopback 0
    [NPE2-LoopBack0] ip address 3.3.3.3 32
    [NPE2-LoopBack0] quit
    [NPE2] mpls lsr-id 3.3.3.3
    [NPE2] mpls ldp
    [NPE2–ldp] quit
    

    # Enable L2VPN.

    [NPE2] l2vpn enable
    

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

    [NPE2] vsi aaa
    [NPE2-vsi-aaa] pwsignaling ldp
    [NPE2-vsi-aaa-ldp] peer 1.1.1.1 pw-id 500 no-split-horizon
    [NPE2-vsi-aaa-ldp-1.1.1.1-500] quit
    [NPE2-vsi-aaa-ldp] peer 2.2.2.2 pw-id 500
    [NPE2-vsi-aaa-ldp-2.2.2.2-500] quit
    [NPE2-vsi-aaa-ldp] peer 4.4.4.4 pw-id 500
    [NPE2-vsi-aaa-ldp-4.4.4.4-500] quit
    [NPE2-vsi-aaa-ldp] quit
    [NPE2-vsi-aaa] quit
    
  5. Configure NPE 3:

    # Configure basic MPLS.

    <NPE3> system-view
    [NPE3] interface loopback 0
    [NPE3-LoopBack0] ip address 4.4.4.4 32
    [NPE3-LoopBack0] quit
    [NPE3] mpls lsr-id 4.4.4.4
    [NPE3] mpls ldp
    [NPE3–ldp] quit
    

    # Enable L2VPN.

    [NPE3] l2vpn enable
    

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

    [NPE3] vsi aaa
    [NPE3-vsi-aaa] pwsignaling ldp
    [NPE3-vsi-aaa-ldp] peer 2.2.2.2 pw-id 500
    [NPE3-vsi-aaa-ldp-2.2.2.2-500] quit
    [NPE3-vsi-aaa-ldp] peer 3.3.3.3 pw-id 500
    [NPE3-vsi-aaa-ldp-3.3.3.3-500] quit
    [NPE3-vsi-aaa-ldp] quit
    [NPE3-vsi-aaa] quit
    

    # On interface Ten-GigabitEthernet 1/0/1 connected to CE 3, create a service instance and bind the service instance to VSI aaa.

    [NPE3] interface ten-gigabitethernet 1/0/1
    [NPE3-Ten-GigabitEthernet1/0/1] service-instance 1000
    [NPE3-Ten-GigabitEthernet1/0/1-srv1000] encapsulation s-vid 10
    [NPE3-Ten-GigabitEthernet1/0/1-srv1000] xconnect vsi aaa
    [NPE3-Ten-GigabitEthernet1/0/1-srv1000] quit
    

Verifying the configuration

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

[UPE] display l2vpn pw verbose
VSI Name: aaa
  Peer: 2.2.2.2          PW ID: 500
    Signaling Protocol  : LDP
    Link ID             : 8          PW State : Up
    In Label            : 131151     Out Label: 131279
    Wait to Restore Time: 0 sec
    MTU                 : 1500
    PW Attributes       : Main
    VCCV CC             : -
    VCCV BFD            : -
    Tunnel Group ID     : 0x1800000260000002
    Tunnel NHLFE IDs    : 137
  Peer: 3.3.3.3          PW ID: 500
    Signaling Protocol  : LDP
    Link ID             : 8          PW State : Blocked
    In Label            : 131150     Out Label: 131279
    MTU                 : 1500
    PW Attributes       : Backup
    VCCV CC             : -
    VCCV BFD            : -
    Tunnel Group ID     : 0x1800000360000003
    Tunnel NHLFE IDs    : 135
[NPE1] display l2vpn pw verbose
VSI Name: aaa
  Peer: 1.1.1.1          PW ID: 500
    Signaling Protocol  : LDP
    Link ID             : 8          PW State : Up
    In Label            : 131279     Out Label: 131151
    MTU                 : 1500
    PW Attributes       : Main, No-split-horizon
    VCCV CC             : -
    VCCV BFD            : -
    Tunnel Group ID     : 0x180000060000000
    Tunnel NHLFE IDs    : 136
  Peer: 3.3.3.3          PW ID: 500
    Signaling Protocol  : LDP
    Link ID             : 9          PW State : Up
    In Label            : 131280     Out Label: 131290
    MTU                 : 1500
    PW Attributes       : Main
    VCCV CC             : -
    VCCV BFD            : -
    Tunnel Group ID     : 0x1800000160000005
    Tunnel NHLFE IDs    : 137
  Peer: 4.4.4.4          PW ID: 500
    Signaling Protocol  : LDP
    Link ID             : 10         PW State : Up
    In Label            : 131278     Out Label: 131279
    MTU                 : 1500
    PW Attributes       : Main
    VCCV CC             : -
    VCCV BFD            : -
    Tunnel Group ID     : 0x1800000160000001
    Tunnel NHLFE IDs    : 138
[NPE2] display l2vpn pw verbose
VSI Name: aaa
  Peer: 1.1.1.1          PW ID: 500
    Signaling Protocol  : LDP
    Link ID             : 8          PW State : Up
    In Label            : 131279     Out Label: 131150
    MTU                 : 1500
    PW Attributes       : Main, No-split-horizon
    VCCV CC             : -
    VCCV BFD            : -
    Tunnel Group ID     : 0x180000060000000
    Tunnel NHLFE IDs    : 136
  Peer: 2.2.2.2          PW ID: 500
    Signaling Protocol  : LDP
    Link ID             : 9          PW State : Up
    In Label            : 131290     Out Label: 131280
    MTU                 : 1500
    PW Attributes       : Main
    VCCV CC             : -
    VCCV BFD            : -
    Tunnel Group ID     : 0x1800000160000008
    Tunnel NHLFE IDs    : 137
  Peer: 4.4.4.4          PW ID: 500
    Signaling Protocol  : LDP
    Link ID             : 10         PW State : Up
    In Label            : 131278     Out Label: 131278
    MTU                 : 1500
    PW Attributes       : Main
    VCCV CC             : -
    VCCV BFD            : -
    Tunnel Group ID     : 0x1800000160000001
    Tunnel NHLFE IDs    : 138
[NPE3] display l2vpn pw verbose
VSI Name: aaa
  Peer: 2.2.2.2          PW ID: 500
    Signaling Protocol  : LDP
    Link ID             : 8          PW State : Up
    In Label            : 131279     Out Label: 131278
    MTU                 : 1500
    PW Attributes       : Main
    VCCV CC             : -
    VCCV BFD            : -
    Tunnel Group ID     : 0x180000060000000
    Tunnel NHLFE IDs    : 136
  Peer: 3.3.3.3          PW ID: 500
    Signaling Protocol  : LDP
    Link ID             : 9          PW State : Up
    In Label            : 131278     Out Label: 131278
    MTU                 : 1500
    PW Attributes       : Main
    VCCV CC             : -
    VCCV BFD            : -
    Tunnel Group ID     : 0x1800000160000001
    Tunnel NHLFE IDs    : 137