Technical data

Table Of Contents
Converged Enhanced Ethernet Command Reference 243
53-1002508-01
switchport access
2
switchport access
Sets the Layer 2 interface as access.
Synopsis switchport access vlan vlan_id
no switchport access vlan
Operands vlan vlan_id Sets the port VLAN (PVID) to the specified vlan_id. The range of valid values is
from 1 through 3583.
Defaults By default, all Layer 2 interfaces are in access mode and belong to the VLAN ID 1.
Command
Modes
Interface configuration mode
Description Use this command to set the Layer 2 interface as access. In access mode, the interface only allows
untagged and priority tagged packets. Use the no switchport access vlan command to set the PVID
to the default VLAN 1.
Usage
Guidelines
None
Examples To set the Layer 2 interface PVID to 100:
switch(conf-if-te-0/19)#switchport access vlan 100
See Also show vlan, show interface, switchport mode, switchport trunk