Chapter 10
Configuring Private VLANs
Note
With Release 12.1(11b)E and later, when you are in configuration mode you can enter EXEC mode-level
commands by entering the do keyword before the EXEC mode-level command.
Configuring a VLAN as a Private VLAN
To configure a VLAN as a private VLAN, perform this task:
Command
Step 1
Router(config)# vlan vlan_ID
Step 2
Router(config-vlan)# private-vlan {community |
isolated | primary}
Router(config-vlan)# no private-vlan {community |
isolated | primary}
Step 3
Router(config-vlan)# end
Step 4
Router# show vlan private-vlan [type]
This example shows how to configure VLAN 202 as a primary VLAN and verify the configuration:
Router# configure terminal
Router(config)# vlan 202
Router(config-vlan)# private-vlan primary
Router(config-vlan)# end
Router# show vlan private-vlan
Primary Secondary Type
------- --------- ----------------- ------------------------------------------
202
This example shows how to configure VLAN 303 as a community VLAN and verify the configuration:
Router# configure terminal
Router(config)# vlan 303
Router(config-vlan)# private-vlan community
Router(config-vlan)# end
Router# show vlan private-vlan
Primary Secondary Type
------- --------- ----------------- ------------------------------------------
202
This example shows how to configure VLAN 440 as an isolated VLAN and verify the configuration:
Router# configure terminal
Router(config)# vlan 440
Router(config-vlan)# private-vlan isolated
Router(config-vlan)# end
Router# show vlan private-vlan
Primary Secondary Type
------- --------- ----------------- ------------------------------------------
202
78-14064-04
primary
primary
303
community
primary
303
community
440
isolated
Cisco 7600 Series Router Cisco IOS Software Configuration Guide—12.1E
Purpose
Enters VLAN configuration submode.
Configures a VLAN as a private VLAN.
Clears the private VLAN configuration.
These commands do not take effect until you exit
Note
VLAN configuration submode.
Exits configuration mode.
Verifies the configuration.
Interfaces
Interfaces
Interfaces
Configuring Private VLANs
10-5