Command Reference Guide Port Channel Interface Config Command Set
61200510L1-35E Copyright © 2005 ADTRAN 1030
switchport access vlan <vlan id>
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
<vlan id> 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
switchport mode [access
| trunk] on page 1032
for more information.
Usage Examples
The following example sets the switchport mode to static-access and makes the port channel 1 port a
member of VLAN 2:
(config)#interface port-channel 1
(config-p-chan 1)#switchport mode access
(config-p-chan 1)#switchport access vlan 2