C613-50170-01 Rev B
Command Reference for x510 Series
597
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
VLAN C
OMMANDS
SWITCHPORT
TRUNK
ALLOWED
VLAN
switchport trunk allowed vlan
Overview
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.
Use the
no
variant of this command to reset switching characteristics of a specified
interface to negate a trunked configuration specified with
switchport trunk
allowed vlan
command.
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
Default
By default, ports are untagged members of the default VLAN (vlan1).
Mode
Interface Configuration
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 the list of VLANs that are allowed to transmit and
receive through the port. Only use this parameter if a list of VLANs is
already configured on a port.
remove
Remove a VLAN from the list of VLANs that are allowed to transmit
and receive through the port. Only use this parameter if a list of
VLANs is already configured on a port.
If you are removing VLAN port membership for a large number of
switchports and VLANs, note that this command may take a number
of minutes to run.
except
All VLANs, except the VLAN for which the VID is specified, are part of
its port member set. Only use this parameter to remove VLANs after
either this parameter or the
all
parameter have added VLANs to a
port.
<
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.