Configuring a VLAN as a Private VLAN - CLI Version
Procedure
Step 1
Step 2
Step 3
Step 4
This example shows how to enable private VLAN functionality on the device:
switch# config t
switch(config)# feature private-vlan
switch(config)#
Configuring a VLAN as a Private VLAN - CLI Version
Note
Before you configure a VLAN as a secondary VLAN—that is, either a community or isolated VLAN—you
must first shut down the VLAN network interface.
You can configure a VLAN as a private VLAN.
To create a private VLAN, you first create a VLAN and then configure that VLAN to be a private VLAN.
You create all VLANs that you want to use in the private VLAN as a primary VLAN, a community VLAN,
or an isolated VLAN. You will later associate multiple isolated and multiple community VLANs to one
primary VLAN. You can have many primary VLANs and associations, which means that you could have
many private VLANs.
Cisco Nexus 9000 Series NX-OS Layer 2 Switching Configuration Guide, Release 7.x
56
Command or Action
config t
Example:
switch# config t
switch(config)#
feature private-vlan
Example:
switch(config)# feature
private-vlan
switch(config)#
exit
Example:
switch(config)# exit
switch#
copy running-config startup-config
Example:
switch(config)# copy
running-config startup-config
Configuring Private VLANs Using NX-OS
Purpose
Enters configuration mode.
Enables private VLAN functionality on the device.
Beginning with Cisco NX-OS Release
Note
7.0(3)I5(1), you must completely remove any
PVLAN configuration before disabling the
private VLAN feature using the no feature
private-vlan command. For earlier software
releases, you must bring any PVLAN ports to
the operationally down state before applying
the no feature private-vlan command.
Exits the configuration mode.
(Optional)
Copies the running configuration to the startup
configuration.