Step 1 |
enable
Example:
Switch> enable
|
Enables
privileged EXEC mode. Enter your password if prompted.
|
Step 2 | configure
terminal
Example:
Switch# configure terminal
|
Enters global
configuration mode.
|
Step 3 | vtp mode
transparent
Example:
Switch(config)# vtp mode transport
|
Sets VTP mode to
transparent (disable VTP).
|
Step 4 | vlan
vlan-id
Example:
Switch(config)# vlan 20
|
Enters VLAN
configuration mode and designates or creates a VLAN that will be the primary
VLAN. The VLAN ID range is 2 to 1001 and 1006 to 4094.
|
Step 5 | private-vlan
primary
Example:
Switch(config-vlan)# private-vlan primary
|
Designates the
VLAN as the primary VLAN.
|
Step 6 | exit
Example:
Switch(config-vlan)# exit
|
Returns to global
configuration mode.
|
Step 7 | vlan
vlan-id
Example:
Switch(config)# vlan 501
|
(Optional) Enters
VLAN configuration mode and designates or creates a VLAN that will be an
isolated VLAN. The VLAN ID range is 2 to 1001 and 1006 to 4094.
|
Step 8 | private-vlan
isolated
Example:
Switch(config-vlan)# private-vlan isolated
|
Designates the
VLAN as an isolated VLAN.
|
Step 9 | exit
Example:
Switch(config-vlan)# exit
|
Returns to global
configuration mode.
|
Step 10 | vlan
vlan-id
Example:
Switch(config)# vlan 502
|
(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.
|
Step 11 | private-vlan
community
Example:
Switch(config-vlan)# private-vlan community
|
Designates the
VLAN as a community VLAN.
|
Step 12 | exit
Example:
Switch(config-vlan)# exit
|
Returns to global
configuration mode.
|
Step 13 | vlan
vlan-id
Example:
Switch(config)# vlan 503
|
Enters VLAN
configuration mode for the primary VLAN designated in Step 2.
|
Step 14 | private-vlan
association [add |
remove]
secondary_vlan_list
Example:
Switch(config-vlan)# private-vlan association 501-503
|
Associates the
secondary VLANs with the primary VLAN.
|
Step 15 | end
Example:
Switch(config-vlan)# end
|
Returns to
privileged EXEC mode.
|
Step 16 | show vlan
private-vlan [type] or
show interfaces
status
Example:
Switch(config)# show vlan private vlan
|
Verifies the
configuration.
|
Step 17 | copy
running-config startup config
Example:
Switch# copy running-config startup-config
|
Saves your
entries in the
switch
startup configuration file.
To save the private-VLAN
configuration, you need to save the VTP transparent mode configuration and
private-VLAN configuration in the
switch
startup configuration file. Otherwise, if the
switch
resets, it defaults to VTP server mode, which does not support private VLANs.
|