show interfaces switchport
Shows one port’s administrative and operational switchport mode, access VLAN, native VLAN and trunking settings.
Written by a working field network engineer · CCNA, Security+, CySA+
Everything about one port’s Layer 2 role: what mode you configured, what mode it is actually operating in, and its access, voice and native VLANs. It is how you tell an access port from a trunk when show vlan brief leaves you guessing.
Example output
SW1#show interfaces FastEthernet0/1 switchport
Name: Fa0/1
Switchport: Enabled
Administrative Mode: static access
Operational Mode: static access
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: native
Negotiation of Trunking: Off
Access Mode VLAN: 10 (USERS)
Trunking Native Mode VLAN: 1 (default)
Administrative Native VLAN tagging: enabled
Voice VLAN: none
Administrative private-vlan host-association: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Protected: falseReference output: hand-written in standard Cisco IOS format for this example network, not captured from a device.
Useful variants
show interfaces Fa0/1 switchportsh int fa0/1 sw
What each column or field means
| Field | Meaning |
|---|---|
Administrative Mode | What you configured: static access, trunk, dynamic auto or dynamic desirable. |
Operational Mode | What the port is actually doing. If it differs from the administrative mode, negotiation decided it. |
Negotiation of Trunking | On if the port sends DTP frames. switchport nonegotiate or switchport mode access turns it off. |
Access Mode VLAN | The VLAN the port uses when it is an access port. |
Trunking Native Mode VLAN | The untagged VLAN if the port trunks. |
Voice VLAN | The VLAN tagged for an attached IP phone, if configured. |
When it doesn’t look right
Administrative mode is dynamic auto and operational mode is static access.
Two dynamic auto ends never form a trunk. Configure switchport mode trunk on at least one side, preferably both.
An access port shows Negotiation of Trunking: On.
The port can still be talked into trunking by DTP, which enables VLAN hopping. Set switchport mode access explicitly.
Related commands
Try it yourself
- Access and Trunk Ports on One Switch (free)
- VLAN Trunking Mode (free)
- Correcting a Wrong Access VLAN (Pro)
Learn it in the CCNA path
- Read administrative and operational switchport mode (2. Network Access)
- Tell access ports from trunk ports (2. Network Access)
- DTP & VTP Protocols (2. Network Access)
- Close the native VLAN and DTP hopping paths (5. Security Fundamentals)
Topic
802.1Q Trunking — Carry several VLANs over one link with 802.1Q, control the allowed list and native VLAN, and diagnose trunks that will not form.