2-130
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter2 Catalyst 6500 Series Switch and ROM Monitor Commands
clear vlan
clear vlan
To delete an existing VLAN from a management domain or to clear VLANs that are secured by a
Firewall Services Module, use the clear vlan command.
clear vlan vlans
clear vlan {vlans} firewall-vlan {mod}
Syntax Description
Defaults This command has no default settings.
Command Types Switch command.
Command Modes Privileged.
Usage Guidelines Follow these guidelines for deleting VLANs:
When you delete a normal-range Ethernet VLAN in VTP server mode, the VLAN is re moved fro m
all switches in the same VTP domain.
When you delete a normal-range VLAN in VTP transparent mode, the VLAN is deleted only on the
current switch.
You can delete an extended-range VLAN only on the switch where it was created.
When you clear a VLAN, all ports assigned to that VLAN become inactive. However, the VLAN port
assignments are retained until you move the ports to another VLAN. If the clear ed VLAN i s react i vated,
all ports that are still configured on that VLAN are also reactivated. A warning is displayed if you clear
a VLAN that exists in the mapping table.
When you clear a private VLAN (primary, isolated, or community), the ports are set to inactive and are
not assigned to any VLAN. The private VLAN mappings for the selected VLAN are also cleared. ACL
to VLAN mappings are also deleted.
Examples This example shows how to clear existing VLAN 4000 from a management domain:
Console> (enable) clear vlan 4000
This command will de-activate all ports on vlan 4
in the entire management domain
Do you want to continue(y/n) [n]? y
VLAN 4 deleted
Console> (enable)
vlans Number of the VLAN; valid values are from 2 to 1000 and from 1025 t o 4094.
firewall-vlan Clears VLANs that are secured by a Firewall Services Module.
mod Number of the module.