Specifications
A-9
Catalyst 4224 Access Gateway Switch Software Configuration Guide
OL-2031-02
Appendix A Command Reference for Voice VLAN
switchport access
Syntax
switchport access vlan vlan-id
no switchport access vlan vlan-id
Syntax Description
vlan vlan-id
ID of the VLAN. Valid IDs are from 1 to 1005. Do not enter leading zeroes.
Defaults
All ports are in static-access mode in VLAN 1.
Command Modes
Interface configuration.
Usage Guidelines
An access port can be assigned to only one VLAN.
When the no switchport access vlan form is used, the access mode is reset to
static access on VLAN 1.
Example
The following example shows how to assign a port to VLAN 2 (instead of the
default VLAN 1):
Switch(config-if)# switchport access vlan 2