461
[PE1-vsi-aaa-ldp] quit
[PE1-vsi-aaa] quit
# Bind Layer 3 Ethernet interface GigabitEthernet 1/1/1 to VSI
aaa
.
[PE1] interface gigabitethernet 1/1/1
[PE1-GigabitEthernet1/1/1] xconnect vsi aaa
[PE1-GigabitEthernet1/1/1] quit
3.
Configure PE 2:
# Configure basic MPLS.
<PE2> system-view
[PE2] interface loopback 0
[PE2-LoopBack0] ip address 2.2.2.9 32
[PE2-LoopBack0] quit
[PE2] mpls lsr-id 2.2.2.9
[PE2] mpls ldp
[PE2-ldp] quit
# Enable L2VPN.
[PE2] l2vpn enable
# Configure VSI
aaa
that uses LDP as the PW signaling protocol, and establish PWs to PE 1
and PE 3.
[PE2] vsi aaa
[PE2-vsi-aaa] pwsignaling ldp
[PE2-vsi-aaa-ldp] peer 1.1.1.9 pw-id 500
[PE2-vsi-aaa-ldp-1.1.1.9-500] quit
[PE2-vsi-aaa-ldp] peer 3.3.3.9 pw-id 500
[PE2-vsi-aaa-ldp-3.3.3.9-500] quit
[PE2-vsi-aaa-ldp] quit
[PE2-vsi-aaa] quit
# Bind Layer 3 Ethernet interface GigabitEthernet 1/1/1 to VSI
aaa
.
[PE2] interface gigabitethernet 1/1/1
[PE2-GigabitEthernet1/1/1] xconnect vsi aaa
[PE2-GigabitEthernet1/1/1] quit
4.
Configure PE 3:
# Configure basic MPLS.
<PE3> system-view
[PE3] interface loopback 0
[PE3-LoopBack0] ip address 3.3.3.9 32
[PE3-LoopBack0] quit
[PE3] mpls lsr-id 3.3.3.9
[PE3] mpls ldp
[PE3-ldp] quit
# Enable L2VPN.
[PE3] l2vpn enable
# Configure VSI
aaa
that uses LDP as the PW signaling protocol, and establish PWs to PE 1
and PE 2.
[PE3] vsi aaa
[PE3-vsi-aaa] pwsignaling ldp
[PE3-vsi-aaa-ldp] peer 1.1.1.9 pw-id 500
[PE3-vsi-aaa-ldp-1.1.1.9-500] quit