Removing VLANs from Physical Ports

You can remove VLANs from an Ethernet port, and the port will be added back to the default VLAN as an untagged member port.

The vlan-config remove all command is used to remove all VLANs from physical ports (except the default VLAN and reserved VLANs). The untagged ports will be moved to the default VLAN after removing the ports from this VLAN and the tagged ports will be moved to the default VLAN if they are not members of any other VLAN.

Note: The vlan-config remove all command is supported on all ICX devices.

To remove VLANs from a physical port, complete the following steps.

  1. From global configuration mode, enter interface Ethernet configuration mode.
    device(config)# interface ethernet 1/1/1
  2. Enter the vlan-config remove all command to remove all VLANs from the Ethernet port.
    device(config-if-e40000-1/1/1)# vlan-config remove all 
    (port(s) will be removed from 300 VLANs in single execution)

To remove all VLANs from a physical port, enter commands such as the following.

device(config)# interface ethernet 1/1/1
device(config-if-e40000-1/1/1)# vlan-config remove all 

To remove all VLANs from more than one physical port, enter commands such as the following.

device(config)# interface ethernet 1/1/1 ethernet 1/1/5
device(config-mif-1/1/1,1/1/5)# vlan-config remove all 
Note: VLAN groups cannot be removed from the ports using this command.

The following is an example to show that VLAN groups cannot be removed from the ports.

device(config)# vlan-group 1 vlan 1001 to 1005
device(config-vlan-group-1)# tag ethernet 1/1/1
Added tagged port(s) ethernet 1/1/1 to vlan-group 1.
device(config-vlan-group-1)# exit
device(config)#
device(config)# interface ethernet 1/1/1
device(config-if-e4000-1/1/1)# vlan-config remove all 
Port(s) ethernet 1/1/1 cannot be removed from VLANs 1 1001 to 1005