C613-50631-01 Rev A Command Reference for IE340 Series 659
AlliedWare Plus™ Operating System - Version 5.5.3-0.x
VLAN COMMANDS
SWITCHPORT
ACCESS VLAN
switchport access vlan
Overview Use this command to change the port-based VLAN of the current port.
Use the no variant of this command to change the port-based VLAN of this port to
the default VLAN, VLAN 1.
Syntax
switchport access vlan <vlan-id>
no switchport access vlan
Default VLAN 1
Mode Interface Configuration
Usage notes Any untagged frame received on this port will be associated with the specified
VLAN.
Examples To change the port-based VLAN to VLAN 3 for port1.0.2, use the commands:
awplus# configure terminal
awplus(config)# interface port1.0.2
awplus(config-if)# switchport access vlan 3
To reset the port-based VLAN to the default VLAN 1 for port1.0.2, use the
commands:
awplus# configure terminal
awplus(config)# interface port1.0.2
awplus(config-if)# no switchport access vlan
Related
commands
show interface switchport
show vlan
Command
changes
Version 5.5.0-1.3: Support for up to 5 VLANs added to AR1050V
Parameter Description
<vlan-id> <1-4094> The port-based VLAN ID for the port.