user manual
PurposeCommand or Action
(Optional) Enters VLAN configuration mode and designates
or creates a VLAN that will be a community VLAN. The
VLAN ID range is 2 to 1001 and 1006 to 4094.
vlan vlan-id
Example:
Switch(config)# vlan 502
Step 9
Designates the VLAN as a community VLAN.private-vlan community
Example:
Switch(config-vlan)# private-vlan community
Step 10
Returns to global configuration mode.exit
Example:
Switch(config-vlan)# exit
Step 11
Enters VLAN configuration mode for the primary VLAN
designated in Step 2.
vlan vlan-id
Example:
Switch(config)# vlan 503
Step 12
Associates the secondary VLANs with the primary VLAN.private-vlan association [add | remove]
secondary_vlan_list
Step 13
Example:
Switch(config-vlan)# private-vlan
association 501-503
Returns to privileged EXEC mode.end
Example:
Switch(config-vlan)# end
Step 14
Verifies the configuration.show vlan private-vlan [type] or show interfaces
status
Step 15
Example:
Switch(config)# show vlan private vlan
Saves your entries in the switch startup configuration file.copy running-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