Service Manual

This command is specic to the PVLAN feature.
The following examples show the results of using this command without the command options on the C300 and S50V switches
in the topology diagram previously shown.
Display the primary-secondary VLAN mapping. The following example shows the output from the S50V.
show vlan private-vlan mapping
This command is specic to the PVLAN feature.
Examples of Viewing a Private VLAN using the show Commands
The show arp and show vlan commands are revised to display PVLAN data.
The following example shows viewing a private VLAN.
c300-1#show vlan private-vlan
Primary Secondary Type Active Ports
------- --------- --------- ------ --------------
4000 Primary Yes Gi 1/1,23,25
4001 Community Yes Gi 4/1,23
4002 Community Yes Gi 4/24,47
4003 Isolated Yes Gi 1/24,47
The following example shows using the show vlan private-vlan mapping command.
S50-1#show vlan private-vlan mapping
Private Vlan:
Primary : 4000
Isolated : 4003
Community : 4001
NOTE: In the following example, notice the addition of the PVLAN codes – P, I, and C – in the left column.
The following example shows viewing the VLAN status.
S50V#show vlan
Codes: * - Default VLAN, G - GVRP VLANs, P - Primary, C - Community, I - Isolated
Q: U - Untagged, T - Tagged
x - Dot1x untagged, X - Dot1x tagged
G - GVRP tagged, M - Vlan-stack
NUM Status Description Q Ports
* 1 Inactive
100 Inactive
P 200 Inactive primary VLAN in PVLAN T Gi 1/19-20
I 201 Inactive isolated VLAN in VLAN 200 T Gi 1/21
The following example shows viewing a private VLAN conguration.
!
interface GigabitEthernet 1/3
no ip address
switchport
switchport mode private-vlan promiscuous
no shutdown
!
interface GigabitEthernet 1/4
no ip address
switchport
switchport mode private-vlan host
no shutdown
!
interface GigabitEthernet 1/5
no ip address
switchport
switchport mode private-vlan host
no shutdown
574
Private VLANs (PVLAN)