Chapter 36
Configuring Private VLANs
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Voice VLAN: none
Appliance trust: none
Administrative Private Vlan
Host Association: 202 (VLAN0202) 440 (VLAN0440)
Promiscuous Mapping: none
Trunk encapsulation : dot1q
Trunk vlans:
Operational private-vlan(s):
202 (VLAN0202) 440 (VLAN0440)
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL
Permitting Routing of Secondary VLAN Ingress Traffic
Note
Isolated and community VLANs are both called secondary VLANs.
To permit routing of secondary VLAN ingress traffic, perform this task:
Command
Step 1
Switch# configure terminal
Step 2
Switch(config)# interface vlan primary_vlan_ID
Step 3
Switch(config-if)# [no] private-vlan mapping
primary_vlan_ID { secondary_vlan_list | add
secondary_vlan_list | remove secondary_vlan_list }
Step 4
Switch(config-if)# end
Step 5
Switch# show interface private-vlan mapping
When you permit routing on the secondary VLAN ingress traffic, note the following:
•
•
•
•
OL-6696-01
202 (VLAN0202) 440 (VLAN0440)
The private-vlan mapping interface configuration command only affects private VLAN ingress
traffic that is Layer 3 switched.
The secondary_vlan_list parameter cannot contain spaces. It can contain multiple comma-separated
items. Each item can be a single private VLAN ID or a hyphenated range of private VLAN IDs.
Enter a secondary_vlan_list parameter or use the add keyword with a secondary_vlan_list
parameter to map the secondary VLANs to the primary VLAN.
Use the remove keyword with a secondary_vlan_list parameter to clear the mapping between
secondary VLANs and the primary VLAN.
Purpose
Enters global configuration mode.
Enters interface configuration mode for the primary
VLAN.
To permit routing on the secondary VLAN ingress traffic,
map the secondary VLAN to the primary VLAN.
You can use the no keyword to delete all associations
from the primary VLAN.
Exits configuration mode.
Verifies the configuration.
Software Configuration Guide—Release 12.2(25)EW
How to Configure PVLANs
36-11