Chapter 47
Configuring Private VLANs
Configuring a VLAN as a PVLAN
To configure a VLAN as a PVLAN, perform this task:
Command
Step 1
Switch# configure terminal
Step 2
Switch(config)# vlan vlan_ID
Step 3
Switch(config-vlan)# private-vlan {community |
twoway-community | isolated | primary}
Step 4
Switch(config-vlan)# end
Step 5
Switch# show vlan private-vlan [type]
This example shows how to configure VLAN 202 as a primary VLAN and verify the configuration:
Switch# configure terminal
Switch(config)# vlan 202
Switch(config-vlan)# private-vlan primary
Switch(config-vlan)# end
Switch# show vlan private-vlan
Primary Secondary Type
------- --------- ----------------- ------------------------------------------
202
This example shows how to configure VLAN 303 as a community VLAN and verify the configuration:
Switch# configure terminal
Switch(config)# vlan 303
Switch(config-vlan)# private-vlan community
Switch(config-vlan)# end
Switch# show vlan private-vlan
Primary Secondary Type
------- --------- ----------------- ------------------------------------------
202
This example shows how to configure VLAN 440 as an isolated VLAN and verify the configuration:
Switch# configure terminal
Switch(config)# vlan 440
Switch(config-vlan)# private-vlan isolated
Switch(config-vlan)# end
Switch# show vlan private-vlan
Primary Secondary Type
------- --------- ----------------- ------------------------------------------
202
primary
primary
303
community
primary
303
community
440
isolated
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Purpose
Enters configuration mode.
Enters VLAN configuration mode.
Configures a VLAN as a PVLAN.
This command does not take effect until you exit
•
VLAN configuration submode.
You can use the no keyword to clear PVLAN status.
Exits VLAN configuration mode.
Verifies the configuration.
Interfaces
Interfaces
Interfaces
Configuring PVLANs
47-15