Administrator Guide

Layer 2 Switching Commands 823
Default Configuration
This command has no default setting.
Command Mode
Privileged Exec mode, Configuration mode and all Configuration submodes
User Guidelines
Do not configure private VLANs on ports configured with any of these
features:
Link Aggregation Control Protocol (LACP)
Multicast VLAN Registration (MVR)
Voice VLAN
It is recommended that the private VLAN host ports be configured as
spanning-tree portfast.
The command displays the following information.
switchport access vlan
Use the switchport access vlan command in Interface Configuration mode to
configure the 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.
Parameter Description
Primary Primary VLAN ID.
Secondary Secondary VLAN ID.
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.
2CSNXXX_SWUM204.book Page 823 Monday, January 25, 2016 1:25 PM