166
[PE2–mpls-ldp] quit
# Create a remote peer.
[PE2] mpls ldp remote-peer 1
[PE2-mpls-ldp-remote-1] remote-ip 3.3.3.3
[PE2-mpls-ldp-remote-1] quit
# Configure OSPF.
[PE2] ospf
[PE2-ospf-1] area 0
[PE2-ospf-1-area-0.0.0.0] network 4.4.4.4 0.0.0.0
[PE2-ospf-1-area-0.0.0.0] network 12.1.1.0 0.0.0.255
[PE2-ospf-1-area-0.0.0.0] quit
[PE2-ospf-1] quit
# Configure basic MPLS for the interface connecting ASBR 2.
[PE2] interface vlan-interface 12
[PE2-Vlan-interface12] ip address 12.1.1.4 24
[PE2-Vlan-interface12] mpls
[PE2-Vlan-interface12] mpls ldp
[PE2-Vlan-interface12] quit
# Enable L2VPN and MPLS L2VPN.
[PE2] l2vpn
[PE2-l2vpn] mpls l2vpn
[PE2-l2vpn] quit
# Configure a VPLS instance named
aaa
that uses LDP signaling.
[PE2] vsi aaa static
[PE2-vsi-aaa] pwsignal ldp
[PE2-vsi-aaa-ldp] vsi-id 500
[PE2-vsi-aaa-ldp] peer 3.3.3.3
[PE2-vsi-aaa-ldp] quit
[PE2-vsi-aaa] quit
# On interface GigabitEthernet 3/0/1 connected to CE 2, create a service instance and bind the
service instance with the VPLS instance
aaa
.
[PE2] interface GigabitEthernet 3/0/1
[PE2-GigabitEthernet3/0/1] service-instance 1000
[PE2-GigabitEthernet3/0/1-srv1000] encapsulation s-vid 100
[PE2-GigabitEthernet3/0/1-srv1000] xconnect vsi aaa
[PE2-GigabitEthernet3/0/1-srv1000] quit
5.
Verify the configuration.
Execute the
display vpls connection
command on each device. You can see that PWs are set up
and in up state.