Concept Guide

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
!
interface GigabitEthernet 1/6
no ip address
switchport
switchport mode private-vlan host
no shutdown
!
interface GigabitEthernet 1/25
no ip address
switchport
switchport mode private-vlan trunk
no shutdown
!
interface Vlan 4000
private-vlan mode primary
private-vlan mapping secondary-vlan 4001-4003
no ip address
tagged GigabitEthernet 1/3,25
no shutdown
!
interface Vlan 4001
private-vlan mode community
Private VLANs (PVLAN)
699