476
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 1/1/1 to VSI
aaa
.
[UPE] interface gigabitethernet 1/1/1
[UPE-GigabitEthernet1/1/1] xconnect vsi aaa
[UPE-GigabitEthernet1/1/1] quit
# Bind the CE 2-facing Layer 3 Ethernet interface GigabitEthernet 1/1/2 to VSI
aaa
.
[UPE] interface gigabitethernet 1/1/2
[UPE-GigabitEthernet1/1/2] xconnect vsi aaa
[UPE-GigabitEthernet1/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