Specifications
switchport access
131
switchport access
Sets access port information.
Syntax
To set or change information:
switchport access vlan <VLAN ID>
To delete information:
no switchport access vlan
Input mode
(config-if)
Parameters
vlan <VLAN ID>
Sets the access port VLAN. Specifiable VLANs are port VLANs or MAC VLANs. A
protocol VLAN cannot be set.
1. Default value when this parameter is omitted:
This parameter cannot be omitted.
2. Range of values:
See Specifiable values for parameters.
Default behavior
The access port of the default VLAN (VLAN ID = 1) is used.
Impact on communication
None
When the change is applied
The change is applied immediately after setting values are changed.
Notes
1. If an untagged frame or tagged frame of a port VLAN is received, the frame is
handled by the port VLAN. If a tagged frame of a VLAN other than a port VLAN is
received, the frame is discarded.
Related commands
switchport mode
vlan