-60
Cisco ME 3800X and ME 3600X Switch Command Reference
OL-28238-01
Chapter
switchport access vlan
switchport access vlan
To configure a port as a static-access port, use the switchport access vlan command in interface
configuration mode. If the switchport mode is set to access (by using the switchport mode interface
configuration command), use this command to set the port to operate as a member of the specified
VLAN. To reset the access VLAN mode to the default VLAN for the switch, use the no form of this
command.
switchport access vlan {vlan-id | dynamic}
no switchport access vlan
Note This command is not available on interfaces with service instances configured.
Syntax Description
Note Although visible in the command-line help, the dynamic keyword is not supported.
Defaults The default access VLAN and trunk interface native VLAN is a VLAN corresponding to the platform or
interface hardware.
Command Modes Interface configuration
Command History
Usage Guidelines The no switchport access vlan command resets the access mode VLAN to the appropriate default
VLAN for the device.
The port must be in access mode before the switchport access vlan command can take effect.
An access port can be assigned to only one VLAN.
You can verify the configuration by entering the show interfaces interface-id switchport privileged
EXEC command and examining information in the Administrative Mode and Operational Mode rows.
Examples This example shows how to change a Layer 2 interface in access mode to operate in VLAN 2 instead of
the default VLAN.
Switch(config-if)# switchport access vlan 2
vlan-id Configure the interface as a static access port with the VLAN ID of the
access mode VLAN; the range is 1 to 4094.
Release Modification
12.2(52)EY This command was introduced.