show interfaces switchport

This topic explains the command that displays switchport information, such as port mode and VLAN membership, for interfaces or LAGs.

Syntax

show interfaces switchport id

Parameter

id: Specify the interface, LAG, a range of interfaces, or a range of LAGs. The id parameter represents the interface or LAG number or a range of interface numbers or LAG numbers. Use a hyphen to indicate a range. Use a comma to separate individual interfaces, ranges, or a combination of both.

Default

No default value.

Mode

Privileged EXEC

Usage

Use this command to show switchport information for one or more interfaces.

Example

This example shows how to display switchport information for interface 1/0/10:
CODE
Switch (config)# interface 1/0/10
Switch (config-if)# switchport hybrid allowed vlan add 100
Switch# show interfaces switchport 1/0/10
Port : 1/0/10
Port Mode : Trunk
Ingress Filtering : enabled
Acceptable Frame Type : all
Ingress UnTagged VLAN ( NATIVE ) : 1
Trunking VLANs Enabled: 100

Port is member in:
 Vlan   Name                     Egress rule
------- -----------------------  ----------------
    1   default                  Untagged
  100   VLAN-one-hundred         Tagged

Forbidden VLANs:
 Vlan       Name