C613-50631-01 Rev A Command Reference for IE340 Series 673
AlliedWare Plus™ Operating System - Version 5.5.3-0.x
VLAN COMMANDS
SWITCHPORT
TRUNK ALLOWED VLAN
Usage notes 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.6
awplus(config-if)# switchport trunk allowed vlan except 3,5
If you do this, then the configuration changes to:
Examples The following shows adding a single VLAN to a port’s member set.
awplus# configure terminal
awplus(config)# interface port1.0.2
awplus(config-if)# switchport trunk allowed vlan add 2
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.6ď€
switchportď€
switchport mode trunkď€
switchport trunk allowed vlan except 3,5