show interface switchport

To display information about all the switch port interfaces, use the show interface switchport command.

show interface switchport

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes

EXEC mode

Command History

Release
Modification
4.0(0)N1(1a)
This command was introduced.
5.0(3)N1(1)
Support to configure traffic rate limit on a switch port was added.

Usage Guidelines

You can configure the rate limit on the following Cisco Nexus 5000 Series switches using the switchport monitor rate-limit 1G command:

This command does not require a license.

Examples

This example shows how to display information for all Ethernet interfaces on a switch that runs Cisco NX-OS Release 5.0(3)N1(1):

switch# show interface switchport
Name: Ethernet1/1
Switchport: Enabled
Switchport Monitor: Not enabled
Operational Mode: fex-fabric
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Trunking VLANs Enabled: 1,300-795,900,1002-1005
Pruning VLANs Enabled: 2-1001
Administrative private-vlan primary host-association: none
Administrative private-vlan secondary host-association: none
Administrative private-vlan primary mapping: none
Administrative private-vlan secondary mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk private VLANs: none
Operational private-vlan: none
Unknown unicast blocked: disabled
Unknown multicast blocked: disabled
 
Name: Ethernet1/2
Switchport: Enabled
Switchport Monitor: Not enabled
Operational Mode: vntag
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Trunking VLANs Enabled: 1,300-795
Pruning VLANs Enabled: 2-1001
Administrative private-vlan primary host-association: none
<--Output truncated-->
switch#
 

This example shows how to display the rate limit status for Ethernet interface 1/2:

switch# show interface switchport
BEND-2(config-if)# show interface switchport
Name: Ethernet1/1
Switchport: Enabled
Switchport Monitor: Not enabled
Operational Mode: fex-fabric
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Trunking VLANs Enabled: 1,300-800,900
Pruning VLANs Enabled: 2-1001
Administrative private-vlan primary host-association: none
Administrative private-vlan secondary host-association: none
Administrative private-vlan primary mapping: none
Administrative private-vlan secondary mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk private VLANs: none
Operational private-vlan: none
Unknown unicast blocked: disabled
Unknown multicast blocked: disabled
 
Name: Ethernet1/2
Switchport: Enabled
Switchport Monitor: Not enabled
Operational Mode: trunk
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Trunking VLANs Enabled: 1,300-800
Pruning VLANs Enabled: 2-1001
Administrative private-vlan primary host-association: none
Administrative private-vlan secondary host-association: none
Administrative private-vlan primary mapping: none
Administrative private-vlan secondary mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk private VLANs: none
Operational private-vlan: none
Unknown unicast blocked: disabled
Unknown multicast blocked: disabled
Monitor destination rate-limit: 1G
 
<--Output truncated-->
switch #
 

This example shows how to display the voice VLAN information for an Ethernet interface on a switch that runs Cisco NX-OS Release 5.0(3)N2(1):

switch# show interface ethernet 1/28 switchport
Name: Ethernet1/28
Switchport: Enabled
Switchport Monitor: Not enabled
Operational Mode: access
Access Mode VLAN: 3000 (VLAN3000)
Trunking Native Mode VLAN: 1 (default)
Trunking VLANs Enabled: 1,200,300-302,500,2001-2248,3000-3001,4049,4090
Pruning VLANs Enabled: 2-1001
Voice VLAN: 3
Extended Trust State : not trusted [COS = 0]
Administrative private-vlan primary host-association: none
Administrative private-vlan secondary host-association: none
Administrative private-vlan primary mapping: none
Administrative private-vlan secondary mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk private VLANs: none
Operational private-vlan: none
Unknown unicast blocked: disabled
Unknown multicast blocked: disabled
 
switch#
 

Related Commands

Command
Description
switchport access vlan
Sets the access VLAN when the interface is in access mode.
switchport monitor rate-limit
Configures the rate limit for traffic on an interface.