C122-E003-02EN 8-69
GSWB
8.2 Configuration Definition Commands
8.2.9.2 switchport access vlan
This command specifies an interface for a VLAN.
To make the command available, the port must be in access mode. Only one VLAN
can be allocated to the access port.
When making this setting for a port-channel port, no setting is required for a physical
link that is part of the target port-channel. The contents of settings made for such
links are not reflected. The setting for a physical link in the port-channel is reflected
in the physical link at the time the link is removed from the port-channel.
(1) Synopsis
• Designates an interface as a static access port (port VLAN port)
• Designates an interface as part of the default VLAN in the device
(2) Options
z <vlan-id>: ID of the port VLAN to which the interface belongs (1 to 4094)
(3) Command mode
Interface
(4) See also
switchport mode
vlan
switchport access vlan <vlan-id>
no switchport access vlan