encapsulation dot1q

encapsulation dot1q <VLAN-ID>

no encapsulation dot1q <VLAN-ID>

Description

Configures 802.1Q encapsulation on a subinterface.

The no form of this command removes 802.1Q encapsulation on a subinterface.

Parameter

Description

<VLAN-ID>

Specifies encapsulation VLAN ID.

Range 1 to 4094.

NOTE: The encapsulation VLAN ID should be unique within an L3 LAG subinterface. The same encapsulation VLAN ID can be configured among different parent interfaces, but the encapsulation VLAN ID should not be configured in the internal VLAN range. (Encapsulation VLAN IDs and static VLANs are entirely different and do not coincide.)

Usage

Associates an 802.1Q VLAN ID with a subinterface.

Examples

Configuring 802.1Q encapsulation on a subinterface:

switch(config)# interface 1/1/1.201 switch(config-subif)# encapsulation dot1q 10

Removing 802.1Q encapsulation on a subinterface:

switch(config-subif)# no encapsulation dot1q 10

For more information on features that use this command, refer to the Fundamentals Guide for your switch model.

Command History

Release

Modification

10.11

Command introduced for 8325, 10000 switch series.

Command Information

Platforms

Command context

Authority

8325

config-subif

Administrators or local user group members with execution rights for this command.