Chapter 10
Configuring VLANs
This example shows how to clear all 802.1Q-to-ISL VLAN mappings:
Console> (enable) clear vlan mapping dot1q all
All vlan mapping entries deleted
Console> (enable)
Deleting a VLAN
When you delete a VLAN in VTP server mode, the VLAN is removed from all switches in the VTP
domain. When you delete a VLAN in VTP transparent mode, the VLAN is deleted only on the current
switch. When you are on a VTP client, you can only delete a VLAN on the local switch.
When you delete a VLAN, any ports assigned to that VLAN become inactive. Such ports remain
Caution
associated with the VLAN (and thus inactive) until you assign them to a new VLAN.
To delete a VLAN on the switch, perform this task in privileged mode:
Task
Delete a VLAN.
This example shows how to delete a VLAN (in this case, the switch is a VTP server):
Console> (enable) clear vlan 500
This command will deactivate all ports on vlan 500
in the entire management domain
Do you want to continue(y/n) [n]?y
Vlan 500 deleted
Console> (enable)
Configuring Private VLANs
These sections describe how private VLANs work:
•
•
•
•
•
•
•
Understanding How Private VLANs Work
A private VLAN is a VLAN you configure to have some Layer 2 isolation from other ports within the
same private VLAN. Ports belonging to a private VLAN are associated with a common set of supporting
VLANs that are used to create the private VLAN structure. You can configure private VLANs and
normal VLANs from the same Catalyst 4000 family switch.
78-12647-02
Understanding How Private VLANs Work, page 10-7
Private VLAN Configuration Guidelines, page 10-9
Creating a Private VLAN, page 10-10
Viewing the Port Capability of a Private VLAN Port, page 10-13
Deleting a Private VLAN, page 10-13
Deleting an Isolated or Community VLAN, page 10-14
Deleting a Private VLAN Mapping, page 10-14
Software Configuration Guide—Catalyst 4000 Family, Catalyst 2948G, Catalyst 2980G, Releases 6.3 and 6.4
Command
clear vlan vlan_num
Configuring Private VLANs
10-7