Removing VLANs from Physical Ports
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.
To remove VLANs from a physical port, complete the following steps.
- From global configuration mode, enter interface Ethernet configuration mode.
- Enter the
vlan-config remove allcommand to remove all VLANs from the Ethernet port.
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
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