93
primary to secondary
(The command is only
available for host port.)
<2-4094> Primary range VLAN ID of the private VLAN
port association
Switch(config-if)# switchport private-vlan host-association 2
<2-4094> Secondary range VLAN ID of the private VLAN
port association
Switch(config-if)# switchport private-vlan host-association 2 3
Mapping primary to
secondary VLANs
(This command is only
available for
promiscuous port)
Switch(config)# interface fa10
Switch(config-if)# switchport mode private-vlan promiscuous
Switch(config-if)# switchport private-vlan mapping 2 add 3
Switch(config-if)# switchport private-vlan mapping 2 add 4
Switch(config-if)# switchport private-vlan mapping 2 add 5
Private VLAN Information
Private VLAN
Information
Switch# show vlan private-vlan
FLAGS: I -> Isolated P -> Promiscuous
C -> Community
Primary Secondary Type Ports
------- --------- ----------------- ---------------------
2 3 Isolated fa10(P),fa9(I)
2 4 Community fa10(P),fa8(C)
2 5 Community
fa10(P),fa7(C),fa9(I)
10 - - -
PVLAN Type
Switch# show vlan private-vlan type
Vlan Type Ports
---- ----------------- -----------------
2 primary fa10
3 isolated fa9
4 community fa8
5 community fa7,fa9
10 primary -
Host List
Switch# show vlan private-vlan port-list
Ports Mode Vlan
----- ----------- ----
1 normal -
2 normal -
3 normal -
4 normal -
5 normal -
6 normal -
7 host 5
8 host 4
9 host 3
10 promiscuous 2
Running Config
Information
Switch# show run
Building configuration...
Current configuration:
hostname Switch
vlan learning independent
!
vlan 1
!