Switchport access vlan Page 649
Page 649
Command Reference Guide
Ethernet Interface Configuration Command Set
61200510L1-35E
Copyright © 2005 ADTRAN
649
switchport access vlan
Use the switchport access vlan command to set the port to be a member of the VLAN when in access
mode. To reset the port to be a member of the default VLAN, use the no version of this command.
Syntax Description
Specifies a valid VLAN interface ID (1 to 4094).
Default Values
By default, this is set to VLAN 1 (the default VLAN).
Applicable Platforms
This command applies to the NetVanta 300, 1000, and 1000R Series units.
Command History
Release 5.1
Command was introduced.
Functional Notes
If the port is in the trunk mode, this command will not alter the switchport mode to access. Instead it will
save the value to be applied when the port does switch to access mode. Refer to
Usage Examples
The following example sets the switchport mode to static access and makes the Ethernet interface 0/1 port
a member of VLAN 2:
(config)#interface eth 0/1
(config-eth 0/1)#switchport mode access
(config-eth 0/1)#switchport access vlan 2