39-11
Software Configuration Guide—Release 15.0(2)SG
OL-23818-01
Chapter 39 Configuring Private VLANs Configuring PVLANs
Configuring PVLANs
These sections describe how to configure PVLANs:
Basic PVLAN Configuration Procedure, page 39-12
Default Private-VLAN Configuration, page 39-12
PVLAN Configuration Guidelines and Restrictions, page 39-12
Configuring a VLAN as a PVLAN, page 39-15
Associating a Secondary VLAN with a Primary VLAN, page 39-16
Configuring a Layer 2 Interface as a PVLAN Promiscuous Port, page 39-17
Configuring a Layer 2 Interface as a PVLAN Host Port, page 39-18
show interface private-vlan mapping Verifies the configuration. Permitting Routing of Secondary
VLAN Ingress Traffic, page 39-23
switchport mode private-vlan {host |
promiscuous | trunk promiscuous |
trunk [secondary]}
Configures a Layer 2 interface as a
PVLAN port. Configuring PVLANs, page 39-11
switchport private-vlan mapping
[trunk] primary_vlan_ID
{secondary_vlan_list | add
secondary_vlan_list | remove
secondary_vlan_list}
Maps the PVLAN promiscuous port
to a primary VLAN and to selected
secondary VLANs.
Configuring a Layer 2 Interface as a
PVLAN Promiscuous Port,
page 39-17
Configuring a Layer 2 Interface as a
Promiscuous PVLAN Trunk Port,
page 39-21
Switch(config-if)# switchport
private-vlan host-association
primary_vlan_ID secondary_vlan_ID
Associates the Layer 2 interface with
a PVLAN.
Note You can associate only one
primary-secondary VLAN
pair to the isolated port.
Configuring a Layer 2 Interface as a
PVLAN Host Port, page 39-18
switchport private-vlan association
trunk primary_vlan_ID
secondary_vlan_ID
Configures association between
primary VLANs and secondary
VLANs the PVLAN trunk port with a
PVLAN.
Note You can configure the
isolated trunk port with
multiple primary-secondary
pair.
Configuring a Layer 2 Interface as an
Isolated PVLAN Trunk Port,
page 39-19
switchport private-vlan trunk allowed
vlan vlan_list all | none | [add | remove
| except] vlan_atom[,vlan_atom...]
Configures a list of allowed normal
VLANs on a PVLAN trunk port. Configuring a Layer 2 Interface as an
Isolated PVLAN Trunk Port,
page 39-19
switchport private-vlan trunk native
vlan vlan_id Configures a VLAN to which
untagged packets (as in IEEE 802.1Q
tagging) are assigned on a PVLAN
trunk port.
Configuring a Layer 2 Interface as an
Isolated PVLAN Trunk Port,
page 39-19
Command Purpose Location