149
# Configure the basic attributes of VPLS instance aaa, which uses LDP.
[NPE3] vsi aaa static
[NPE3-vsi-aaa] pwsignal ldp
[NPE3-vsi-aaa-ldp] vsi-id 500
[NPE3-vsi-aaa-ldp] peer 2.2.2.9
[NPE3-vsi-aaa-ldp] quit
[NPE3-vsi-aaa] quit
# On interface GigabitEthernet 3/0/1 connected to CE 2, create a service instance and bind
VPLS instance
aaa
to the service instance.
[NPE3] interface GigabitEthernet 3/0/1
[NPE3-GigabitEthernet3/0/1] service-instance 1000
[NPE3-GigabitEthernet3/0/1-srv1000] encapsulation s-vid 100
[NPE3-GigabitEthernet3/0/1-srv1000] xconnect vsi aaa
[NPE3-GigabitEthernet3/0/1-srv1000] quit
[NPE3-GigabitEthernet3/0/1] quit
5.
Verify the configuration.
After you complete previous configurations, issue the
display vpls connection
command on the PEs.
You will see that a PW connection in up state has been established.
Configuring hub-spoke VPLS
Network requirements
Set up a PW between Spoke-PE 1 and Hub-PE and a PW between Spoke-PE 2 and Hub-PE.
Configure VPLS instance
aaa
to support hub-spoke networking.
On Spoke-PE 1, Hub-PE, and Spoke-PE 2, configure a service instance and bind it to the VPLS instance
aaa
. The service instance matches the received packets that carry VLAN tag 100 on GigabitEthernet
3/0/1. The matched packets are forwarded by VPLS instance
aaa
.
Figure 38
Network diagram
Hub-PE
Spoke-PE 1
Spoke-PE 2
Spoke-CE 1
Spoke-CE 2
Hub-CE
Vlan-int10
10.1.1.1/24
GE3/0/1
GE3/0/1
Loop0
2.2.2.9/32
Loop0
1.1.1.9/32
Vlan-int20
20.1.1.2/24
Vlan-int20
20.1.1.1/24
Vlan-int10
10.1.1.2/24
GE3/0/1
Loop0
3.3.3.9/32