1233
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
OL-27880-02
Chapter S Commands
switchport mode private-vlan host
switchport mode private-vlan host
To set the interface type to be a host port for a private VLAN, use the
switchport mode private-vlan
host
command. To remove the configuration, use the
no
form of this command.
switchport mode private-vlan host
no switchport mode
Syntax Description
This command has no arguments or keywords.
Command Default
None
Command Modes
Interface configuration mode
Virtual Ethernet interface configuration mode
Command History
Usage Guidelines
When you configure a port as a host private VLAN port and one of the following applies, the port
becomes inactive:
•
The port does not have a valid private VLAN association configured.
•
The port is a Switched Port Analyzer (SPAN) destination.
•
The private VLAN association is suspended.
If you delete a private VLAN port association or if you configure a private port as a SPAN destination,
the deleted private VLAN port association or the private port that is configured as a SPAN destination
becomes inactive.
Note
We recommend that you enable spanning tree BPDU Guard on all private VLAN host ports.
Examples
This example shows how to set a port to host mode for private VLANs:
switch(config-if)#
switchport mode private-vlan host
This example shows how to set a virtual Ethernet interface port to host mode for private VLANs:
switch#
configure terminal
switch(config)#
interface vethernet 1
switch(config-if)#
switchport mode private-vlan host
switch(config-if)#
Release
Modification
5.2(1)N1(1)
This command was introduced.