Configuring A Vlan As A Pvlan - Cisco Catalyst 4500 series Administration Manual

Hide thumbs Also See for Catalyst 4500 series:
Table of Contents

Advertisement

Chapter 44
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
OL_28731-01
primary
primary
303
community
primary
303
community
440
isolated
Software Configuration Guide—Release IOS XE 3.6.0E and IOS 15.2(2)E
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
44-15

Advertisement

Table of Contents
loading

Table of Contents