When you configure Ethernet or bridged Ethernet layer 2 services over MPLS, you can use the svlan id command with the any keyword to create a stacked VLAN (S-VLAN) tunnel that uses a single interface to tunnel traffic from multiple VLANs across an MPLS network. The S-VLAN tunnel enables multiple VLANs, each configured with a different VLAN ID tag and a common S-VLAN ID, to share a common VC label while traversing an MPLS network.
You can use the svlan id command with the any keyword only with the mpls-relay command or the route interface command to configure layer 2 services over MPLS.
To configure S-VLAN tunnels for Ethernet/VLAN layer 2 services over MPLS:
- host1(config)#interface fastEthernet 8/1
- host1(config-if)#encapsulation vlan
- host1(config-if)#interface fastEthernet 8/1.1
- host1(config-if)#svlan id 33 any
- host1(config-if)#svlan ethertype 8100
- host1(config-if)#route interface tunnel mpls:tunnel3
45
or
- host1(config-if)#mpls-relay 10.10.100.2 45