Specifications

Table Of Contents
encapsulation dot1q
MP-66
Cisco IOS Multiprotocol Label Switching Command Reference
January 2010
Examples The following example shows how to create the subinterfaces within the range 0.11 and 0.60 and apply
VLAN ID 101 to the Fast Ethernet0/0.11 subinterface, VLAN ID 102 to Fast Ethernet0/0.12 (vlan-id =
101 + 12 – 11 = 102), and so on up to VLAN ID 150 to Fast Ethernet0/0.60 (vlan-id = 101 + 60 – 11
= 150):
Router(config)# interface range fastethernet0/0.11 - fastethernet0/0.60
Router(config-int-range)# encapsulation dot1q 101
The following example shows how to terminate a Q-in-Q frame on an unambiguous subinterface with an
outer VLAN ID of 100 and an inner VLAN ID of 200:
Router(config)# interface gigabitethernet1/0/0.1
Router(config-subif)#
encapsulation dot1q 100 second-dot1q 200
The following example shows how to terminate a Q-in-Q frame on an ambiguous subinterface with an
outer VLAN ID of 100 and an inner VLAN ID in the range from 100 to 199 or from 201 to 600:
Router(config)# interface gigabitethernet1/0/0.1
Router(config-subif)#
encapsulation dot1q 100 second-dot1q 100-199,201-600
Related Commands Command Description
encapsulation isl Enables the ISL, which is a Cisco proprietary protocol for interconnecting
m
ultiple switches and maintaining VLAN information as traffic goes
between switches.
encapsulation sde Enables IEEE 802.10 encapsulation of traffic on a specified subinterface
i
n VLANs.
interface range Specifies multiple subinterfaces on which subsequent commands are
e
xecuted at the same time.
show vlans dot1q Displays information about 802.1Q VLAN subinterfaces.