H-VPLS UPE dual homing configuration example

Network requirements

To improve reliability of the H-VPLS network, the UPE establishes a U-PW with NPE 1 and NPE 2. 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 128: 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 to 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
    

    # Bind the CE 1-facing Layer 3 Ethernet interface GigabitEthernet 2/1/1 to VSI aaa.

    [UPE] interface gigabitethernet 2/1/1
    [UPE-GigabitEthernet2/1/1] xconnect vsi aaa
    [UPE-GigabitEthernet2/1/1] quit
    

    # Bind the CE 2-facing Layer 3 Ethernet interface GigabitEthernet 2/1/2 to VSI aaa.

    [UPE] interface gigabitethernet 2/1/2
    [UPE-GigabitEthernet2/1/2] xconnect vsi aaa
    [UPE-GigabitEthernet2/1/2] 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 PWs to UPE, NPE 2, and NPE 3.

    [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 PWs to UPE, NPE 1, and NPE 3.

    [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 PWs to NPE 1 and NPE 2.

    [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
    

    # Bind Layer 3 Ethernet interface GigabitEthernet 2/1/1 to VSI aaa.

    [NPE3] interface gigabitethernet 2/1/1
    [NPE3-GigabitEthernet2/1/1] xconnect vsi aaa
    [NPE3-GigabitEthernet2/1/1] quit
    

Verifying the configuration

# Verify that PWs in up state have been established on each PE.

[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            : 1151       Out Label: 1279
    Wait to Restore Time: 0 sec
    MTU                 : 1500
    PW Attributes       : Main
    VCCV CC             : -
    VCCV BFD            : -
    Tunnel Group ID     : 0x260000002
    Tunnel NHLFE IDs    : 1027
  Peer: 3.3.3.3          PW ID: 500
    Signaling Protocol  : LDP
    Link ID             : 8          PW State : Blocked
    In Label            : 1150       Out Label: 1279
    MTU                 : 1500
    PW Attributes       : Backup
    VCCV CC             : -
    VCCV BFD            : -
    Tunnel Group ID     : 0x360000003
    Tunnel NHLFE IDs    : 1025
[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            : 1279       Out Label: 1151
    MTU                 : 1500
    PW Attributes       : Main, No-split-horizon
    VCCV CC             : -
    VCCV BFD            : -
    Tunnel Group ID     : 0x60000000
    Tunnel NHLFE IDs    : 1026
  Peer: 3.3.3.3          PW ID: 500
    Signaling Protocol  : LDP
    Link ID             : 9          PW State : Up
    In Label            : 1280       Out Label: 1290
    MTU                 : 1500
    PW Attributes       : Main
    VCCV CC             : -
    VCCV BFD            : -
    Tunnel Group ID     : 0x160000005
    Tunnel NHLFE IDs    : 1027
  Peer: 4.4.4.4          PW ID: 500
    Signaling Protocol  : LDP
    Link ID             : 10         PW State : Up
    In Label            : 1278       Out Label: 1279
    MTU                 : 1500
    PW Attributes       : Main
    VCCV CC             : -
    VCCV BFD            : -
    Tunnel Group ID     : 0x160000001
    Tunnel NHLFE IDs    : 1028
[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            : 1279       Out Label: 1150
    MTU                 : 1500
    PW Attributes       : Main, No-split-horizon
    VCCV CC             : -
    VCCV BFD            : -
    Tunnel Group ID     : 0x60000000
    Tunnel NHLFE IDs    : 1026
  Peer: 2.2.2.2          PW ID: 500
    Signaling Protocol  : LDP
    Link ID             : 9          PW State : Up
    In Label            : 1290       Out Label: 1280
    MTU                 : 1500
    PW Attributes       : Main
    VCCV CC             : -
    VCCV BFD            : -
    Tunnel Group ID     : 0x160000008
    Tunnel NHLFE IDs    : 1027
  Peer: 4.4.4.4          PW ID: 500
    Signaling Protocol  : LDP
    Link ID             : 10         PW State : Up
    In Label            : 1278       Out Label: 1278
    MTU                 : 1500
    PW Attributes       : Main
    VCCV CC             : -
    VCCV BFD            : -
    Tunnel Group ID     : 0x160000001
    Tunnel NHLFE IDs    : 1028
[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            : 1279       Out Label: 1278
    MTU                 : 1500
    PW Attributes       : Main
    VCCV CC             : -
    VCCV BFD            : -
    Tunnel Group ID     : 0x60000000
    Tunnel NHLFE IDs    : 1026
  Peer: 3.3.3.3          PW ID: 500
    Signaling Protocol  : LDP
    Link ID             : 9          PW State : Up
    In Label            : 1278       Out Label: 1278
    MTU                 : 1500
    PW Attributes       : Main
    VCCV CC             : -
    VCCV BFD            : -
    Tunnel Group ID     : 0x160000001
    Tunnel NHLFE IDs    : 1027