Add and Remove All Tagged VLANs
To enable addition and deletion of a tagged port
selectively for VLAN, the existing commands vlan-config add and
vlan-config remove
are used. The vlan-config add command supports adding an interface to
all VLANs or to specific VLANs as tagged members. The vlan-config
remove command supports removing all VLANs or specific VLANs from the
physical port.
Adding Selective VLAN
The vlan-config add command
will create a new VLAN and add the interface to it, if the interface being added
is
the first interface. The command can add a port to non-active non-configured VLAN.
The command is available in MIF mode. The maximum VLAN or VLAN range supported
in a
single input is 1024 for all devices except the ICX 7150-ES devices, which
is 64. The command keyword all-tagged will put a port as a tagged member of all currently
selected
VLANs.
device(config-if-e1000-1/1/1)# vlan-config add all-tagged Add interface to all VLAN(s) tagged-vlan Add interface to VLAN(s) device(config-if-e1000-1/1/1)# vlan-config add tagged-vlan 2 3 4 Added tagged port(s) ethe 1/1/1 to port-vlan 2. Added tagged port(s) ethe 1/1/1 to port-vlan 3. Added tagged port(s) ethe 1/1/1 to port-vlan 4. device(config-if-e1000-1/1/1)# device(config-if-e1000-1/1/1)# vlan-config add tagged-vlan 1001 to 1005 Added tagged port(s) ethe 1/1/1 to port-vlan 1001. Added tagged port(s) ethe 1/1/1 to port-vlan 1002. Added tagged port(s) ethe 1/1/1 to port-vlan 1003. Added tagged port(s) ethe 1/1/1 to port-vlan 1004. Added tagged port(s) ethe 1/1/1 to port-vlan 1005. device(config-if-e1000-1/1/1)#
Removing Selective VLAN
The maximum VLAN or VLAN range supported in single input is 1024 for all devices except ICX 7150-ES, which is 64.
device(config-if-e40000-1/1/1)# vlan-config remove 2000 to 2005 (port(s) will be removed from 300 VLANs using this command)