VLAN C
OMMANDS
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#
awplus(config)#
awplus(config-if)#
To reset the port-based VLAN to the default VLAN 1 for port1.0.2, use the
commands:
awplus#
awplus(config)#
awplus(config-if)#
Related
show interface switchport
commands
show vlan
Command
Version 5.5.0-1.3: Support for up to 5 VLANs added to AR1050V
changes
C613-50644-01 Rev B
Parameter
Description
<vlan-id>
<1-4094> The port-based VLAN ID for the port.
configure terminal
interface port1.0.2
configure terminal
interface port1.0.2
Command Reference for IE220 Series
AlliedWare Plus™ Operating System - Version 5.5.3-0.x
switchport access vlan 3
no switchport access vlan
609