473
# 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 1/1/1 to VSI
aaa
.
[NPE3] interface gigabitethernet 1/1/1
[NPE3-GigabitEthernet1/1/1] xconnect vsi aaa
[NPE3-GigabitEthernet1/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 : -