88
Primary Type
Isolated Type
Community Type
Switch(config-vlan)# private-vlan primary
Switch(config-vlan)# no private-vlan primary
Switch(config-vlan)# private-vlan isolated
Switch(config-vlan)# no private-vlan isolated
Switch(config-vlan)# private-vlan community
Switch(config-vlan)# no private-vlan community
Private VLAN Port Configuraiton
Go to the port
configuraiton
Switch(config)# interface (port_number, ex: gi9)
Switch(config-if)# switchport private-vlan
host-association Set the private VLAN host association
mapping map primary VLAN to secondary VLAN
Private VLAN Port
Type
Promiscuous Port
Type
Host Port Type
Switch(config-if)# switchport mode
svl Shared vlan learning
private-vlan Set private-vlan mode
Switch(config-if)# switchport mode private-vlan
host Set the mode to private-vlan host
promiscuous Set the mode to private-vlan promiscuous
Switch(config-if)# switchport mode private-vlan promiscuous
Switch(config-if)#no switchport mode private-vlan promiscuous
Switch(config-if)# switchport mode private-vlan host
Private VLAN Port
Configuration
PVLAN Port Type
Host Association
primary to secondary
(The command is
only available for host
port.)
Switch
(config)# interface gi9
Switch(config-if)# switchport mode private-vlan host
Switch(config-if)# switchport private-vlan host-association
<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 gi10
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 gi10(P),gi9(I)
2 4 Community gi10(P),gi8(C)
2 5 Community gi10(P),fa7(C),gi9(I)
10 - - -
PVLAN Type
Switch# show vlan private-vlan type
Vlan Type Ports
---- ----------------- -----------------
2 primary gi10