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 |
|
|
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