34-11
Software Configuration Guide—Release 12.2(25)SG
OL-76590-03
Chapter34 Configuring Private VLANs
How to Configure PVLANs
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:
202 (VLAN0202) 440 (VLAN0440)
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 second ary VLANs.
To permit routing of secondary VLAN ingress traffic, perform this task:
When you permit routing on the secondary VLAN ingress traffic, note the following:
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 sec ondary_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.
Command Purpose
Step1 Switch# configure terminal Enters global configuration mode.
Step2 Switch(config)# interface vlan
primary_vlan_ID
Enters interface configuration mode for the primary
VLAN.
Step3 Switch(config-if)# [no] private-vlan mapping
primary_vlan_ID
{
secondary_vlan_list
| add
secondary_vlan_list
| remove
secondary_vlan_list
}
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.
Step4 Switch(config-if)# end Exits configuration mode.
Step5 Switch# show interface private-vlan mapping Verifies the configuration.