Cisco Cisco IOS Software Release 12.2(2)DD

Page de 8
      VLAN Range
encapsulation dot1q
7
Cisco IOS Release 12.2(2)DD
encapsulation dot1q
To enable IEEE 802.1Q encapsulation of traffic on a specified subinterface in a VLAN, use the 
encapsulation dot1q command in interface range mode.
encapsulation dot1q vlan-id [native]
Syntax Description
Defaults
No default values or behaviors.
Command Modes
Interface range
Command History
Usage Guidelines
IEEE 802.1Q encapsulation is configurable on Fast Ethernet interfaces. IEEE 802.1Q is a standard 
protocol for interconnecting multiple switches and routers and for defining VLAN topologies.
Use the encapsulation dot1q command in interface range mode to apply a VLAN ID to each 
subinterface within the range specified by the interface range command. The VLAN ID specified by 
the vlan-id argument is applied to the first subinterface in the range. Each subsequent interface is 
assigned a VLAN ID which is the specified vlan-id plus the subinterface number minus the first 
subinterface number (VLAN ID + subinterface number - first subinterface number).
Do not configure encapsulation on the native VLAN of an IEEE 802.1Q trunk without the native 
keyword. (Always use the native keyword when vlan-id is the ID of the IEEE 802.1Q native VLAN.)
Examples
The following example creates the subinterfaces within the range 0.11 and 0.60 and applies 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
Related Commands
vlan-id 
Virtual LAN identifier. The allowed range is from 1 to 4095.
native
(Optional) Sets the port VLAN ID value of the port to the vlan-id value.
Release
Modification
12.0(1)T
This command was introduced.
12.1(3)T
The native keyword was added
12.2(2)DD
Configuration of this command in interface range mode was introduced.
Command Description
encapsulation isl
Enables the ISL, a Cisco proprietary protocol for interconnecting multiple 
switches and maintaining VLAN information as traffic goes between switches.
encapsulation sde Enables IEEE 802.10 traffic encapsulation on a specified subinterface in VLANs.