VLAN Commands
©2008 Allied Telesis Inc. All rights reserved.
Software Version 5.2.1
AlliedWare Plus
TM
Operating System Software Reference C613-50003-00 REV E
16.13
switchport trunk allowed vlan
Use this command to add VLANs to be trunked over this switch port. Traffic for these VLANs
can be sent and received on the port.
The
all
parameter sets the port to be a tagged member of all the VLANs configured on the
device. The
none
parameter removes all VLANs from the port’s tagged member set. The
add
and
remove
parameters will add and remove VLANs to and from the port’s member set.
Use the
no
parameter to remove all tagged VLANs, and set the native VLAN to the default
VLAN (vlan1).
Syntax
switchport trunk allowed vlan all
switchport trunk allowed vlan none
switchport trunk allowed vlan add <
vid-list
>
switchport trunk allowed vlan remove <
vid-list
>
switchport trunk allowed vlan except <
vid-list
>
no switchport trunk vlan
Default
By default, ports are untagged members of the default VLAN (vlan1).
Mode
Interface mode
Examples
The following shows adding a single VLAN to the port’s member set.
Parameter
Description
all
Allow all VLANs to transmit and receive through the port.
none
Allow no VLANs to transmit and receive through the port.
add
Add a VLAN to transmit and receive through the port.
remove
Remove a VLAN from transmit and receive through the port.
except
All VLANs, except the VLAN for which the VID is specified, are part of its
port member set.
<
vid-list
>
<2-4094> The ID of the VLAN or VLANs that will be added to, or
removed from, the port. A single VLAN, VLAN range, or comma-
separated VLAN list can be set.
For a VLAN range, specify two VLAN numbers: lowest, then highest
number in the range, separated by a hyphen.
For a VLAN list, specify the VLAN numbers separated by commas.
Do not enter spaces between hyphens or commas when setting
parameters for VLAN ranges or lists.
awplus#
configure terminal
awplus(config)#
interface port1.0.2
awplus(config-if)#
switchport trunk allowed vlan add 2