Cisco Nexus 5000 Series Command Reference Release 4.0(1a)N2(1) (OL-16599-01, March 2009)

Send comments to nx5000-docfeedback@cisco.com
2-94
Cisco Nexus 5000 Series Command Reference
OL-16599-01
Chapter 2 Ethernet 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.
switchport mode private-vlan host
Syntax Description This command has no arguments or keywords.
Command Default None
Command Modes 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,
that port 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
Related Commands
Release Modification
4.0(0)N1(1a) This command was introduced.
Command Description
show interface
switchport
Displays information on all interfaces configured as switch ports.