The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
To enable private VLANs, use the feature private-vlan command. To return to the default settings, use the no form of this command.
feature private-vlan
no feature private-vlan
This command has no arguments or keywords.
Disabled
Global configuration
Supported User Roles
network-admin
vdc-admin
Release |
Modification |
---|---|
4.0 |
This command was introduced. |
You must use this command to enable private VLAN functionality. You must enable private VLANs before the private VLANs are visible to the user. When private VLANs are disabled, all of the configuration on the feature is removed from the interfaces.
You cannot apply the no feature private-vlan command if the device has any operational ports in private VLAN mode. You must shut down all operational ports in private VLAN mode before you use the no feature private-vlan command. After you shut down the interfaces and enter the no feature private-vlan command, these ports return to the default mode.
This command does not require a license.
This example shows how to enable private VLAN functionality on the device:
switch(config)# feature private-vlan switch(config)#
Command |
Description |
---|---|
show feature |
Displays whether the feature is enabled or disabled. |
show vlan private-vlan |
Displays information on private VLANs. If the feature is not enabled, this command returns an error. |
To enable the Virtual Trunking Protocol (VTP), use the feature vtp command. To return to the default setting, use the no form of this command.
feature vtp
no feature vtp
This command has no arguments or keywords.
Disabled
Global configuration
Supported User Roles
network-admin
vdc-admin
Release |
Modification |
---|---|
4.1(2) |
This command was introduced. |
You must use this command to enable private VTP functionality. You must enable private VTP before you can configure or use any of the functionality.
The VTP mode changes to off if VLAN long-names are enabled instead of the default server.
This situation is true even when PVLAN or VLANs from 1002 to 1005 are present.
Note | When you disable the VTP feature, all of the VTP configurations are lost. |
This command does not require a license.
This example shows how to enable VTP functionality on the device:
switch(config)#feature vtp switch(config)#
Command |
Description |
---|---|
show feature |
Displays whether the feature is enabled or disabled. |