Displaying the switchport interface type

Do the following to display detailed Layer 2 information for a specific interface.

Procedure

Enter the show interface switchport to display the detailed Layer 2 information for a specific interface.
device# show interface ethernet 0/1 switchport
 Interface name          : ethernet 0/1
 Switchport mode         : trunk
 Fcoeport enabled        : no
 Ingress filter          : enable
 Acceptable frame types  : vlan-tagged only
 Native Vlan             : 1
 Active Vlans            : 1,5-10
 Inactive Vlans          : -

Example

The example displays the detailed Layer 2 information for a port-channel interface.

device# show interface port-channel 5 switchport
 Interface name          : Port-channel 5
 Switchport mode         : access
 Fcoeport enabled        : no
 Ingress filter          : enable
 Acceptable frame types  : vlan-untagged only
 Default Vlan            : 1
 Active Vlans            : 1
 Inactive Vlans          : -