PurposeCommand or Action
(Optional)Enters VLAN configurationmode and designates
orcreates a VLAN that will be a community VLAN. The
VLANID range is 2 to 1001 and 1006 to 4094.
vlanvlan-id
Example:
Switch(config)# vlan 502
Step 9
Designatesthe VLAN asa communityVLAN.private-vlancommunity
Example:
Switch(config-vlan)# private-vlan community
Step 10
Returnsto globalconfiguration mode.exit
Example:
Switch(config-vlan)# exit
Step 11
EntersVLAN configuration mode for the primary VLAN
designatedin Step 2.
vlanvlan-id
Example:
Switch(config)# vlan 503
Step 12
Associatesthe secondary VLANs with the primary VLAN.private-vlanassociation [add |remove]
secondary_vlan_list
Step 13
Example:
Switch(config-vlan)# private-vlan
association 501-503
Returnsto privileged EXEC mode.end
Example:
Switch(config-vlan)# end
Step 14
Verifiesthe configuration.showvlan private-vlan [type] or show interfaces
status
Step 15
Example:
Switch(config)# show vlan private vlan
Savesyour entriesin theswitch startupconfiguration file.copyrunning-config startup config
Step 16
Catalyst 2960-XR Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX1
OL-29440-01 95
Configuring Private VLANs
Configuring and Associating VLANs in a Private VLAN