Use the following commands on the remote CE router (CE2) to configure the MPLS L2VPN tunnel shown inFigure 122.
- ! Configure a virtual router CE2
- host1(config)#virtual-router ce2
- !
- ! Specify a Gigabit Ethernet interface and assign VLAN
as the encapsulation method.
- host1:ce2(config)#interface gigabitEthernet
2/1/7
- host1:ce2(config-if)#encapsulation vlan
- !
- ! Create a subinterface, assign an S-VLAN ID, and configure
an IP address and mask to it.
- host1:ce2(config-if)#interface gigabitEthernet
2/1/7.1
- host1:ce2(config-subif)#svlan id 1 1
- host1:ce2(config-subif)#ip address 7.7.7.8
255.255.255.0