Cisco Systems OL-6244-01 Switch User Manual


  Open as PDF
of 1438
 
2-172
Catalyst 6500 Series Switch Command Reference—Release 8.4
OL-6244-01
Chapter 2 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 removed from
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 cleared VLAN is reactivated,
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 1 to 4094.
firewall-vlan Clears VLANs that are secured by a Firewall Services Module.
mod Number of the module.