C613-50170-01 Rev B
Command Reference for x510 Series
598
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
VLAN C
OMMANDS
SWITCHPORT
TRUNK
ALLOWED
VLAN
Usage
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. The
except
parameter creates an exception to the list.
If you use the
all
parameter, and then you want to remove VLANs from the port’s
member list, you must use the
except
parameter to remove the unwanted VLANs.
Similarly, if you use the
except
parameter to remove a list of VLANs, and you want
to change that list, you must use the
except
parameter to make that change (not
the
add
and
remove
parameters).
For example, if you want to remove VLAN3-5 from a port and the port’s
configuration is currently
switchport trunk allowed vlan all
, then you should
remove VLAN3-5 by entering the
except
parameter, instead of using the
remove
parameter. This means using the following commands:
awplus#
configure terminal
awplus(config)#
interface port1.0.6
awplus(config-if)#
switchport trunk allowed vlan except 3-5
If you do this, then the configuration changes to:
For example, if you want to add VLAN4 back in again, and the port configuration is
currently
switchport trunk allowed vlan except 3-5
, then you should add VLAN4
by re-entering the
except
parameter with the list of VLANs to remove, instead of
using the
add
parameter. This means using the following commands:
awplus#
configure terminal
awplus(config)#
interface port1.0.5
awplus(config-if)#
switchport trunk allowed vlan except 3,5
If you do this, then the configuration changes to:
awplus#show running-config
interface port1.0.6
switchport
switchport mode trunk
switchport trunk allowed vlan except 3-5
awplus#show running-config
interface port1.0.5
switchport
switchport mode trunk
switchport trunk allowed vlan except 3,5