Chapter 10
Configuring VLANs
Deleting an Isolated or Community VLAN
If you delete an isolated or community VLAN, the binding with the primary VLAN is broken, any
isolated or community ports that are associated to the VLAN become inactive, and any related mappings
on the promiscuous port(s) are deleted.
To delete a VLAN on the switch, perform this task in privileged mode:
Task
Delete an isolated or community VLAN.
This example shows how to delete the community VLAN 902:
Console> (enable) clear vlan 902
This command will de-activate all ports on vlan 902
Do you want to continue (y/n) [n]?y
Vlan 902 deleted
Console> (enable)
Deleting a Private VLAN Mapping
If you delete the private VLAN mapping, the connectivity breaks between the isolated or community
ports and the promiscuous port. If you delete all the mappings on a promiscuous port, the promiscuous
port becomes inactive. When a private VLAN port is set to inactive, it displays "pvlan-" as its VLAN
number in the show port output.
You might set a private VLAN port to inactive for the following reasons:
•
•
To delete a port mapping from a private VLAN, perform this task in privileged mode:
Task
Delete the port mapping from the private VLAN. clear pvlan mapping primary_vlan {isolated |
This example shows how to delete the mapping of VLAN 902 to 901, previously set on ports 3/2 through
3/5:
Console> (enable) clear pvlan mapping 901 902 3/2-5
Successfully cleared mapping between 901 and 902 on 3/2-5
Console> (enable)
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2948G-GE-TX, and Catalyst 2980G Switches Software Configuration Guide—Release 8.2GLX
78-15908-01
The primary, isolated, or community VLAN to which it belongs is cleared.
An error occurs during the configuration of a port to be a private VLAN port.
Command
clear vlan {isolated_vlan_num |
community_vlan_num}
Command
community} {mod/ports}
Configuring Private VLANs
10-23