410
[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
# Create VLAN 10 and assign Ten-GigabitEthernet 1/0/1 to the VLAN.
[UPE] vlan 10
[UPE-vlan10] port ten-gigabitethernet 1/0/1
[UPE-vlan10] quit
# On interface Ten-GigabitEthernet 1/0/1 (the interface connected to CE 1), create an Ethernet
service instance and bind the Ethernet 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
# Create VLAN 11 and assign Ten-GigabitEthernet 1/0/2 to the VLAN.
[UPE] vlan 11
[UPE-vlan11] port ten-gigabitethernet 1/0/2
[UPE-vlan11] quit
# On interface Ten-GigabitEthernet 1/0/2 (the interface connected to CE 2), create an Ethernet
service instance and bind the Ethernet 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 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