Verifying a switchport interface running configuration

Do the following to display the running configuration information for the Layer 2 properties for a specific interface.

Procedure

Enter the show running-config interface to display the running configuration information for a specific interface.
device# show running-config interface ethernet 0/1 switchport	
interface interface Eth 0/1
 switchport
 switchport mode trunk
 switchport trunk allowed vlan add 5-10
 switchport trunk tag native-vlan

Example

This example displays the running configuration information for a port-channel interface.

device# show running-config interface port-channel 5 switchport
interface Port-channel 5
 switchport
 switchport mode access
 switchport access vlan 1