Administrator Guide

Layer 2 Switching Commands 820
switchport access vlan
Use the switchport access vlan command in Interface Configuration mode to
configure the PVID VLAN ID when the interface is in access mode. To
reconfigure the interface to use the default VLAN, use the no form of this
command.
Syntax
switchport access vlan vlan-id
no switchport access vlan
vlan-id — The identifier of the VLAN associated with the access port.
Default Configuration
This command has no default values.
Command Mode
Interface Configuration (Ethernet and port channel) mode
User Guidelines
This command configures the interface access mode VLAN membership. The
no form of the command sets the access mode VLAN membership to VLAN
1. It is possible to configure the access mode VLAN identifier when the port is
in general or trunk mode. Doing so does not change the VLAN membership
of the interface until the interface is configured into access mode.
If the VLAN identified in the command has not been previously created, the
system creates the VLAN, issues a message, and associates the VLAN with the
interface.
Type Secondary VLAN type. Use the type parameter to display only
private VLAN ID and its type.
Ports Ports that are associated with a private VLAN.
Parameter Description