Step 1 |
enable
Example:
Device> enable
|
Enables
privileged EXEC mode. Enter your password if prompted.
|
Step 2 | configure
terminal
Example:
Device# configure terminal
|
Enters the global
configuration mode.
|
Step 3 | vtp mode transparent
Example:
Device(config)# vtp mode transport
|
Sets VTP mode to
transparent (disable VTP).
Note
| For VTP3,
you can set mode to either server or transparent mode
|
|
Step 4 | vlan
vlan-id
Example:
Device(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:
Device(config-vlan)# private-vlan primary
|
Designates the
VLAN as the primary VLAN.
|
Step 6 | exit
Example:
Device(config-vlan)# exit
|
Returns to global
configuration mode.
|
Step 7 | vlan
vlan-id
Example:
Device(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:
Device(config-vlan)# private-vlan isolated
|
Designates the
VLAN as an isolated VLAN.
|
Step 9 | exit
Example:
Device(config-vlan)# exit
|
Returns to global
configuration mode.
|
Step 10 | vlan
vlan-id
Example:
Device(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:
Device(config-vlan)# private-vlan community
|
Designates the
VLAN as a community VLAN.
|
Step 12 | exit
Example:
Device(config-vlan)# exit
|
Returns to global
configuration mode.
|
Step 13 | vlan
vlan-id
Example:
Device(config)# vlan 503
|
(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 14 | private-vlan
community
Example:
Device(config-vlan)# private-vlan community
|
Designates the VLAN as a
community VLAN.
|
Step 15 | exit
Example:
Device(config-vlan)# exit
|
Returns to global
configuration mode.
|
Step 16 | vlan
vlan-id
Example:
Device(config)# vlan 20
|
Enters VLAN
configuration mode for the primary VLAN designated in Step 4.
|
Step 17 | private-vlan
association [add |
remove]
secondary_vlan_list
Example:
Device(config-vlan)# private-vlan association 501-503
|
Associates the
secondary VLANs with the primary VLAN. It can be a single private-VLAN ID or a
hyphenated range of private-VLAN IDs.
-
The
secondary_vlan_list parameter cannot contain
spaces. It can contain multiple comma-separated items. Each item can be a
single private-VLAN ID or a hyphenated range of private-VLAN IDs.
-
The
secondary_vlan_list parameter can contain multiple
community VLAN IDs but only one isolated VLAN ID.
-
Enter a
secondary_vlan_list, or use the
add keyword
with a
secondary_vlan_list to associate secondary VLANs
with a primary VLAN.
-
Use the
remove
keyword with a
secondary_vlan_list to clear the association
between secondary VLANs and a primary VLAN.
-
The
command does not take effect until you exit VLAN configuration mode.
|
Step 18 | end
Example:
Device(config)# end
|
Returns to
privileged EXEC mode.
|
Step 19 | show vlan
private-vlan [type] or
show interfaces
status
Example:
Device# show vlan private-vlan
|
Verifies the
configuration.
|
Step 20 | copy
running-config startup config
Example:
Device# copy running-config startup-config
|
Saves your
entries in the
device startup
configuration file.
|