H-VPLS using MPLS access configuration example
Network requirements
Configure an H-VPLS using MPLS access to avoid full-mesh PW configuration. The H-VPLS uses LDP as the PW signaling protocol.
Figure 88: 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
# Create service instance 10 on Ten-GigabitEthernet 1/0/1 to match all packets.
[UPE] interface ten-gigabitethernet1/0/1 [UPE-Ten-GigabitEthernet1/0/1] service-instance 10 [UPE-Ten-GigabitEthernet1/0/1-srv10] encapsulation default
# Bind service instance 10 to the VSI aaa.
[UPE-Ten-GigabitEthernet1/0/1-srv10] xconnect vsi aaa
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 an N-PW to NPE 2 and NPE 3, respectively.
[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 an N-PW to NPE 1 and NPE 3, respectively.
[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
# Create service instance 10 on Ten-GigabitEthernet 1/0/1 to match all packets.
[NPE2] interface ten-gigabitethernet1/0/1 [NPE2-Ten-GigabitEthernet1/0/1] service-instance 10 [NPE2-Ten-GigabitEthernet1/0/1-srv10] encapsulation default
# Bind service instance 10 to the VSI aaa.
[NPE2-Ten-GigabitEthernet1/0/1-srv10] xconnect vsi aaa
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 an N-PW to NPE 1 and NPE 2, respectively.
[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
# Create service instance 10 on Ten-GigabitEthernet 1/0/1 to match all packets.
[NPE3] interface ten-gigabitethernet1/0/1 [NPE3-Ten-GigabitEthernet1/0/1] service-instance 10 [NPE3-Ten-GigabitEthernet1/0/1-srv10] encapsulation default
# Bind service instance 10 to the VSI aaa.
[NPE3-Ten-GigabitEthernet1/0/1-srv10] xconnect vsi aaa
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.9 PW ID: 500 Signaling Protocol : LDP Link ID : 8 PW State : Up In Label : 131177 Out Label: 131177 MTU : 1500 PW Attributes : Main VCCV CC : - VCCV BFD : - Tunnel Group ID : 0x1800000460000000 Tunnel NHLFE IDs : 130 [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 : 131177 Out Label: 131177 MTU : 1500 PW Attributes : Main, No-split-horizon VCCV CC : - VCCV BFD : - Tunnel Group ID : 0x1800000460000000 Tunnel NHLFE IDs : 130 Peer: 3.3.3.9 PW ID: 500 Signaling Protocol : LDP Link ID : 9 PW State : Up In Label : 131176 Out Label: 131175 MTU : 1500 PW Attributes : Main VCCV CC : - VCCV BFD : - Tunnel Group ID : 0x1800000560000001 Tunnel NHLFE IDs : 131 Peer: 4.4.4.9 PW ID: 500 Signaling Protocol : LDP Link ID : 10 PW State : Up In Label : 131178 Out Label: 131179 MTU : 1500 PW Attributes : Main VCCV CC : - VCCV BFD : - Tunnel Group ID : 0x1800000570000001 Tunnel NHLFE IDs : 132 [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 : 131175 Out Label: 131176 MTU : 1500 PW Attributes : Main VCCV CC : - VCCV BFD : - Tunnel Group ID : 0x1800000660000000 Tunnel NHLFE IDs : 131 Peer: 4.4.4.9 PW ID: 500 Signaling Protocol : LDP Link ID : 9 PW State : Up In Label : 131177 Out Label: 131177 MTU : 1500 PW Attributes : Main VCCV CC : - VCCV BFD : - Tunnel Group ID : 0x1800000670000000 Tunnel NHLFE IDs : 132 [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 : 131179 Out Label: 131178 MTU : 1500 PW Attributes : Main VCCV CC : - VCCV BFD : - Tunnel Group ID : 0x1800000660000000 Tunnel NHLFE IDs : 131 Peer: 3.3.3.9 PW ID: 500 Signaling Protocol : LDP Link ID : 9 PW State : Up In Label : 131177 Out Label: 131177 MTU : 1500 PW Attributes : Main VCCV CC : - VCCV BFD : - Tunnel Group ID : 0x1800000670000000 Tunnel NHLFE IDs : 132