BuildTheNet

Opening your workspace

Your learning content and tools are loading.

802.1Q Trunking

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

Reference output: hand-written in standard Cisco IOS format for this example network, not captured from a device.

Useful variants

What each column or field means

FieldMeaning
Administrative ModeWhat you configured: static access, trunk, dynamic auto or dynamic desirable.
Operational ModeWhat the port is actually doing. If it differs from the administrative mode, negotiation decided it.
Negotiation of TrunkingOn if the port sends DTP frames. switchport nonegotiate or switchport mode access turns it off.
Access Mode VLANThe VLAN the port uses when it is an access port.
Trunking Native Mode VLANThe untagged VLAN if the port trunks.
Voice VLANThe 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

Learn it in the CCNA path

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.

All 57 commands