16 switchport access vlan, 17 switchport mode access – CANOGA PERKINS 9175 Command Reference User Manual
Page 100
CanogaOS Command Reference
6-10
6.16 switchport access vlan
Use this command to set the access port to a specified vlan.
To set the access port to default vlan 1, use no form of this command.
Command Syntax
switchport access vlan vlan
no switchport access vlan
vlan: <2-4094>
Command Mode
Interface configuration
Usage
All the ports are add to vlan 1 by default.
The port should be an access port by switchport mode access command before add to vlan by this
command.
Examples
This example shows how to add the port to vlan 11.
Switch(config-if)# switchport access vlan 11
This example shows how to return the port to default vlan 1.
Switch(config-if)# no switchport access vlan.
Related Commands
switchport mode access
6.17 switchport mode access
Use this command to set the switchport mode to access.
Command Syntax
switchport mode access
access: set the switchport mode to access
Command Mode
Interface configuration
Usage
The access mode is usually used to connect the port to a terminal device, for example a PC.
When the mode is changed, both the mac learned dynamically and configured statically on the port will
be cleared.
Examples