H-VPLS using MPLS access configuration example
Network requirements
Configure an H-VPLS network using MPLS access to avoid full-mesh PW configuration. The H-VPLS uses LDP as the PW signaling protocol.
Figure 127: Network diagram
Configuration procedure
Configure an IGP and public tunnels on each PE. (Details not shown.)
Configure UPE:
# Configure basic MPLS.
<UPE> system-view [UPE] interface loopback 0 [UPE-LoopBack0] ip address 1.1.1.9 32 [UPE-LoopBack0] quit [UPE] mpls lsr-id 1.1.1.9 [UPE] mpls ldp [UPE-ldp] quit
# Enable L2VPN.
[UPE] l2vpn enable
# Configure VSI aaa to use LDP to establish a U-PW to NPE 1.
[UPE] vsi aaa [UPE-vsi-aaa] pwsignaling ldp [UPE-vsi-aaa-ldp] peer 2.2.2.9 pw-id 500 [UPE-vsi-aaa-ldp-2.2.2.9-500] quit [UPE-vsi-aaa-ldp] quit [UPE-vsi-aaa] quit
# Bind 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
Configure NPE 1:
# Configure basic MPLS.
<NPE1> system-view [NPE1] interface loopback 0 [NPE1-LoopBack0] ip address 2.2.2.9 32 [NPE1-LoopBack0] quit [NPE1] mpls lsr-id 2.2.2.9 [NPE1] mpls ldp [NPE1–ldp] quit
# Enable L2VPN.
[NPE1] l2vpn enable
# Configure VSI aaa that uses LDP as the PW signaling protocol, establish a U-PW to the UPE, and establish N-PWs to NPE 2 and NPE 3.
[NPE1] vsi aaa [NPE1-vsi-aaa] pwsignaling ldp [NPE1-vsi-aaa-ldp] peer 1.1.1.9 pw-id 500 no-split-horizon [NPE1-vsi-aaa-ldp-1.1.1.9-500] quit [NPE1-vsi-aaa-ldp] peer 3.3.3.9 pw-id 500 [NPE1-vsi-aaa-ldp-3.3.3.9-500] quit [NPE1-vsi-aaa-ldp] peer 4.4.4.9 pw-id 500 [NPE1-vsi-aaa-ldp-4.4.4.9-500] quit [NPE1-vsi-aaa-ldp] quit [NPE1-vsi-aaa] quit
Configure NPE 2:
# Configure basic MPLS.
<NPE2> system-view [NPE2] interface loopback 0 [NPE2-LoopBack0] ip address 3.3.3.9 32 [NPE2-LoopBack0] quit [NPE2] mpls lsr-id 3.3.3.9 [NPE2] mpls ldp [NPE2–ldp] quit
# Enable L2VPN.
[NPE2] l2vpn enable
# Configure VSI aaa that uses LDP as the PW signaling protocol, and establish N-PWs to NPE 1 and NPE 3.
[NPE2] vsi aaa [NPE2-vsi-aaa] pwsignal ldp [NPE2-vsi-aaa-ldp] peer 2.2.2.9 pw-id 500 [NPE2-vsi-aaa-ldp-2.2.2.9-500] quit [NPE2-vsi-aaa-ldp] peer 4.4.4.9 pw-id 500 [NPE2-vsi-aaa-ldp-4.4.4.9-500] quit [NPE2-vsi-aaa-ldp] quit [NPE2-vsi-aaa] quit
# Bind Layer 3 Ethernet interface GigabitEthernet 2/1/1 to VSI aaa.
[NPE2] interface gigabitethernet 2/1/1 [NPE2-GigabitEthernet2/1/1] xconnect vsi aaa [NPE2-GigabitEthernet2/1/1] quit
Configure NPE 3:
# Configure basic MPLS.
<NPE3> system-view [NPE3] interface loopback 0 [NPE3-LoopBack0] ip address 4.4.4.9 32 [NPE3-LoopBack0] quit [NPE3] mpls lsr-id 4.4.4.9 [NPE3] mpls ldp [NPE3–ldp] quit
# Enable L2VPN.
[NPE3] l2vpn enable
# Configure VSI aaa that uses LDP as the PW signaling protocol, and establish N-PWs to NPE 1 and NPE 2.
[NPE3] vsi aaa [NPE3-vsi-aaa] pwsignal ldp [NPE3-vsi-aaa-ldp] peer 2.2.2.9 pw-id 500 [NPE3-vsi-aaa-ldp-2.2.2.9-500] quit [NPE3-vsi-aaa-ldp] peer 3.3.3.9 pw-id 500 [NPE3-vsi-aaa-ldp-3.3.3.9-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.9 PW ID: 500 Signaling Protocol : LDP Link ID : 8 PW State : Up In Label : 1277 Out Label: 1277 MTU : 1500 PW Attributes : Main VCCV CC : - VCCV BFD : - Tunnel Group ID : 0x460000000 Tunnel NHLFE IDs : 1030 [NPE1] display l2vpn pw verbose VSI Name: aaa Peer: 1.1.1.9 PW ID: 500 Signaling Protocol : LDP Link ID : 8 PW State : Up In Label : 1277 Out Label: 1277 MTU : 1500 PW Attributes : Main, No-split-horizon VCCV CC : - VCCV BFD : - Tunnel Group ID : 0x460000000 Tunnel NHLFE IDs : 1030 Peer: 3.3.3.9 PW ID: 500 Signaling Protocol : LDP Link ID : 9 PW State : Up In Label : 1276 Out Label: 1275 MTU : 1500 PW Attributes : Main VCCV CC : - VCCV BFD : - Tunnel Group ID : 0x560000001 Tunnel NHLFE IDs : 1031 Peer: 4.4.4.9 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 : 0x570000001 Tunnel NHLFE IDs : 1032 [NPE2] 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 : 1275 Out Label: 1276 MTU : 1500 PW Attributes : Main VCCV CC : - VCCV BFD : - Tunnel Group ID : 0x660000000 Tunnel NHLFE IDs : 1031 Peer: 4.4.4.9 PW ID: 500 Signaling Protocol : LDP Link ID : 9 PW State : Up In Label : 1277 Out Label: 1277 MTU : 1500 PW Attributes : Main VCCV CC : - VCCV BFD : - Tunnel Group ID : 0x670000000 Tunnel NHLFE IDs : 1032 [NPE3] 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 : 1279 Out Label: 1278 MTU : 1500 PW Attributes : Main VCCV CC : - VCCV BFD : - Tunnel Group ID : 0x660000000 Tunnel NHLFE IDs : 1031 Peer: 3.3.3.9 PW ID: 500 Signaling Protocol : LDP Link ID : 9 PW State : Up In Label : 1277 Out Label: 1277 MTU : 1500 PW Attributes : Main VCCV CC : - VCCV BFD : - Tunnel Group ID : 0x670000000 Tunnel NHLFE IDs : 1032