CLI Guide

Table Of Contents
Layer 2 Switching Commands 871
show interfaces switchport
Use the show interfaces switchport command to display the complete
switchport VLAN configuration for all possible switch mode configurations:
access, dot1q-tunnel, general, trunk, and (private VLAN) host or (private
VLAN) promiscuous.
Syntax
show interfaces switchport {{gigabitethernet unit/slot/port |
port-channel
port-channel-number
| tengigabitethernet unit/slot/port|
fortygigabitethernet unit/slot/port}}
Default Configuration
If no interface parameter is given, all interfaces are shown.
Command Mode
Privileged Exec mode, Global Configuration mode and all Configuration
submodes
User Guidelines
Each of the switchport modes can be configured independently for a port or
port channel. The configurations are retained even when the port is
configured in a different mode.
It is recommended that the private VLAN host ports be configured as
spanning-tree portfast.
The command displays the following information.
Parameter Description
Private-vlan host-
association
Displays the VLAN association for the private-VLAN host ports.
Private-vlan
mapping
Displays the VLAN mapping for the private-VLAN promiscuous
ports.
Private-vlan trunk
native VLAN
Displays native VLAN for the promiscuous ports.