Users Guide

Layer 2 Switching Commands 824
Examples
The following example configures interface gi1/0/8 to operate in access mode
with a VLAN membership of 23. Received untagged packets are processed on
VLAN 23. Received packets tagged with VLAN 23 are also accepted. Other
received tagged packets are discarded.
console(config)#interface gigabitethernet 1/0/8
console(config-if-Gi1/0/8)#switchport access vlan 23
The following example sets the PVID for interface Gi1/0/12 to VLAN ID 33.
Since VLAN 33 does not exist, it is automatically created.
console(config)# interface gi1/0/12
console(config-if-Gi1/0/12)# switchport access vlan 33
Access VLAN does not exist. Creating VLAN 33
switchport dot1q ethertype (Global Configuration)
Use the switchport dot1q ethertype command to define additional QinQ
tunneling TPIDs for matching in the outer VLAN tag of received frames. Use
the no form of the command to remove the configured TPIDs.
Syntax
switchport dot1q ethertype { vman | custom 1-65535 }
no switchport dot1q ethertype { vman | custom 1-65535 }
vman—Define the Ethertype as 0x88A8.
custom—Define the Ethertype as a 16 bit user defined value (in decimal).
Default Configuration
802.1Q is the default Ethertype for both inner and outer VLAN TPIDs. The
802.1Q TPID cannot be removed from the configuration.
By default QinQ processing of frames is disabled.
Command Mode
Global Configuration