Viewing The Port Capability Of A Private Vlan Port; Deleting A Private Vlan - Cisco WS-C2948G-GE-TX Configuration Manual

Catalyst 4500 series switch
Table of Contents

Advertisement

Configuring Private VLANs
Console> (enable) show pvlan mapping
Port
----- -------- ----------
3/1
Console> (enable) show port
Port
----- ------------------ ---------- ---------- ------ ----- ------------
...truncated output...
4/3
4/4
4/5
4/6
4/7
4/8
4/9
... truncated output...

Viewing the Port Capability of a Private VLAN Port

You can view the port capability of a port in a private VLAN by using the show pvlan capability
command.
These examples show the port capability for several ports in the following configuration:
Console> (enable) set pvlan 10 20
Console> (enable) set pvlan mapping 10 20 3/1
Console> (enable) set pvlan mapping 10 20 5/2
Console> (enable) set trunk 5/1
Console> (enable) show pvlan capability 5/20
Port 5/20 can be made a private vlan port.
Console> (enable) show pvlan
Primary Secondary Secondary-Type Ports
------- --------- -------------- ------------
10
Console> (enable) show pvlan capability 3/1
Port 3/1 cannot be made a private vlan port due to:
------------------------------------------------------
Promiscuous ports cannot be made private vlan ports.

Deleting a Private VLAN

You can delete a private VLAN by deleting the primary VLAN. If you delete a primary VLAN, all
bindings to the primary VLAN are broken, all ports in the private VLAN become inactive, and any
related mappings on the promiscuous port(s) are deleted.
To delete a private VLAN, perform this task in privileged mode:
Task
Delete a primary VLAN.
This example shows how to delete primary VLAN 7:
Console> (enable) clear vlan 7
This command will de-activate all ports on vlan 7
Do you want to continue (y/n) [n]?y
Vlan 7 deleted
Console> (enable)
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2948G-GE-TX, and Catalyst 2980G Switches Software Configuration Guide—Release 8.2GLX
10-22
Primary
Secondary
7
901-903
Name
Status
notconnect 7,901
notconnect 7,902
notconnect 7,902
notconnect 7,902
notconnect 7,903
notconnect 7,903
notconnect 7,903
20
isolated
Vlan
Duplex Speed Type
half
100 100BaseFX MM
half
100 100BaseFX MM
half
100 100BaseFX MM
half
100 100BaseFX MM
half
100 100BaseFX MM
half
100 100BaseFX MM
half
100 100BaseFX MM
desirable isl 1-1005,1025-4094
Command
clear vlan primary_vlan
Chapter 10
Configuring VLANs
78-15908-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents