Show & diagnostics
show interfaces switchport
Per-port L2 details: administrative mode, operational mode, access VLAN, native VLAN, allowed VLANs.
Works on: SwitchMode: enable
Sample output
Name: Fa0/1
Switchport: Enabled
Administrative Mode: access
Operational Mode: access
Access Mode VLAN: 10
Name: Fa0/2
Switchport: Enabled
Administrative Mode: access
Operational Mode: access
Access Mode VLAN: 10
Name: Fa0/3
Switchport: Enabled
Administrative Mode: access
Operational Mode: access
Access Mode VLAN: 20
Name: Fa0/4
Switchport: Enabled
Administrative Mode: access
Operational Mode: access
Access Mode VLAN: 20
Name: Fa0/5
Switchport: Enabled
Administrative Mode: access
Operational Mode: access
Access Mode VLAN: 99
Name: Fa0/6
Switchport: Enabled
Administrative Mode: access
Operational Mode: down
Access Mode VLAN: 1
Name: Fa0/7
Switchport: Enabled
Administrative Mode: access
Operational Mode: downTruncated at 40 of 158 lines — run it in the lab for the full output.
Captured from the NetForge-AI simulator running a real topology.
Run this command live
Don't just read it — type show interfaces switchport in a real network simulator in your browser and watch it take effect. No install, no account needed to start.
Frequently asked
What does the "show interfaces switchport" command do?
Per-port L2 details: administrative mode, operational mode, access VLAN, native VLAN, allowed VLANs.