All Shortcuts

Cisco IOS Shortcuts & Commands — Complete Cheat Sheet (22)

Complete Cisco IOS commands cheat sheet for switch and router configuration. Covers basic commands, VLAN setup, trunking, routing protocols, and troubleshooting.

Related Shortcut Pages

nvidia-smi (GPU) systemctl / systemd IBM Spectrum Scale / ESS Juniper JunOS ipmitool mdadm (RAID)

Search all Cisco IOS shortcuts interactively

Interactive Shortcut Finder

All Cisco IOS Shortcuts

Basic Commands

ShortcutActionDescription
enablePrivileged modeEnter privileged EXEC mode.
configure terminalConfig modeEnter global configuration mode.
show running-configRunning configShow current running configuration.
show startup-configStartup configShow saved startup configuration.
copy running-config startup-configSave configSave current config to NVRAM.
show versionVersion infoShow IOS version and hardware info.
show ip interface briefInterface summaryShow IP and status of all interfaces.
show interfacesInterface detailShow detailed interface status.

VLAN & Switching

ShortcutActionDescription
show vlan briefVLAN listShow configured VLANs.
vlan [number]Create VLANCreate a new VLAN.
interface vlan [number]SVI configConfigure a VLAN interface (SVI).
switchport mode accessAccess modeSet port to access mode.
switchport mode trunkTrunk modeSet port to trunk mode.
switchport access vlan [num]Assign VLANAssign VLAN to port.
show mac address-tableMAC tableShow MAC address table.

Routing

ShortcutActionDescription
show ip routeRouting tableShow IP routing table.
ip route [net] [mask] [gw]Static routeAdd a static route.
router ospf [process]OSPF configConfigure OSPF routing.
show ip ospf neighborOSPF neighborsCheck OSPF neighbor relationships.
show ip bgp summaryBGP summaryShow BGP session status.
ping [IP]PingRun ICMP ping test.
traceroute [IP]TracerouteTrace packet path.
📜 Source: Cisco IOS Configuration Fundamentals — Using the CLI. A curated set of IOS EXEC and configuration commands; Cisco's Configuration Fundamentals guide documents CLI modes and usage in full. Checked 2026-08-03.

Browse shortcuts for 269 platforms

Explore All
🔧 Spotted an error or a missing shortcut? Suggest an edit on GitHub — every accepted fix goes live on this page, the API and the CLI.

Modes are everything

IOS commands only exist inside the right mode, and half of early confusion is mode confusion. You land in user EXEC (> prompt), enable lifts you to privileged EXEC (#), and configure terminal enters global configuration ((config)#) — from which interface, router, and vlan commands descend into sub-modes. show commands live in privileged EXEC; if a show command errors inside config mode, prefix it with do. exit steps out one level; Ctrl + Z (or end) jumps straight back to #.

show before you change

The discipline that separates careful operators: read state first. show running-config is live truth; show startup-config is what boots — and the gap between them is unsaved work, which is why copy running-config startup-config ends every change window. show ip interface brief is the fastest health check on the box (every interface, address, and up/down in one screen), and show vlan brief, show mac address-table, and show ip route answer the three classic questions: which VLANs exist, who's on this port, and where does traffic go.

Let the CLI teach you

IOS has the best built-in help of any network OS. ? lists what's valid right here — alone for commands, after a partial word for completions, after a full word for its arguments. Tab completes unambiguous prefixes, and IOS accepts any unambiguous abbreviation outright: sh ip int br is the same command as its full spelling. The editing keys will feel familiar too — Ctrl + A/E for line start and end come from the same lineage as bash's readline.

Frequently asked questions

What is the difference between running-config and startup-config?

running-config is the live configuration in memory; startup-config is what loads on reboot. Changes apply to running immediately and are lost on reload unless you copy running-config startup-config.

How do I run a show command from inside configuration mode?

Prefix it with do — for example, do show ip interface brief — or press Ctrl+Z to return to privileged EXEC first.

What does Ctrl+Z do in Cisco IOS?

It exits configuration mode entirely, from any depth, straight back to the # prompt — equivalent to the end command.

Can I abbreviate Cisco IOS commands?

Yes, any unambiguous prefix works: sh run, conf t, int g0/1. If the abbreviation is ambiguous, IOS says so and ? shows the candidates.

What's the fastest way to see all interface states?

show ip interface brief — one line per interface with IP, status, and protocol. It's the first command to run on an unfamiliar box.

🤖 Ask AI about Cisco IOS shortcuts

Open your assistant with this page preloaded as the source — great for follow-up questions like "which of these work in other apps?"

ChatGPT Claude Perplexity Gemini Grok