Skip to main content
intermediate Free with email

Cisco Commands Cheat Sheet (190+ IOS Commands for Switches and Routers)

Reviewed 2026-09-15

Direct answer
A 12-page Cisco commands cheat sheet with 190+ IOS commands for switches and routers, grouped by task: basic setup and SSH, VLANs, trunking, port security, spanning tree, static routes and OSPF, ACLs, DHCP and NAT, each with the show commands that verify it.

This Cisco commands cheat sheet is 12 pages of IOS syntax for switches and routers, 190+ commands grouped by task: basic setup and SSH, VLANs, trunking and port security, spanning tree, static routes and OSPF, ACLs, DHCP and NAT. Each section ends with the show commands that prove your config worked.

Is it a free download? Yes. Drop your email below and it lands in your inbox. No payment.

What’s in This Cisco Commands Cheat Sheet, by Topic

The PDF groups commands the way you’d use them on the job, not alphabetically. A quick look at each group:

Switch and router basics

SW1(config)#hostname SW1
SW1(config)#enable secret cisco
SW1(config)#service password-encryption
SW1(config)#banner motd $ ... $
R1(config)#crypto key generate rsa
SW1#copy running-config startup-config

VLANs, trunking and port security

SW1(config)#vlan 10
SW1(config-if)#switchport mode trunk
SW1(config-if)#switchport trunk allowed vlan add 10
SW1(config-if)#switchport port-security maximum 1

Routing: static, OSPF, EIGRP and RIP

R1(config)#ip route 0.0.0.0 0.0.0.0 199.1.1.1
R1(config)#router ospf 10
R1(config-router)#network 10.0.0.0 0.255.255.255 area 0
R1(config)#router eigrp 121

ACLs, NAT and DHCP

R1(config)#access-list 101 permit ip any any
R1(config-if)#ip access-group 101 in
R1(config)#ip nat inside source list 3 pool PUB overload
R1(config)#ip dhcp pool MY_POOL

There’s also a router-on-a-stick section for routing between VLANs. If the idea is new, our router on a stick guide explains why one interface with subinterfaces can route for every VLAN. Older WAN protocols, PPP (CHAP/PAP) and Frame Relay, sit at the back in their own clearly labelled sections, so you can skip them if your track doesn’t cover them.

Basic Cisco Commands for Any Switch or Router

These are the first commands you’ll type on any new device. They’re identical on switches and routers, except line aux 0, which only exists on routers.

Switch(config)#hostname SW1
SW1(config)#enable secret cisco
SW1(config)#line con 0
SW1(config-line)#password cisco
SW1(config-line)#login
SW1(config)#line vty 0 4
SW1(config-line)#login local
SW1(config)#service password-encryption
SW1#copy running-config startup-config

copy running-config startup-config (or the shortcut wr) is the one people forget. Skip it, and the device boots back to its old config after the next reload.

Cisco enable secret vs enable password: Which One to Use

Use enable secret. Always.

Cisco commands compared: enable secret stores a hash and overrides enable password, which sits in the config as clear text
Two Cisco commands that look alike: enable secret hashes the password, enable password leaves it readable in the config.

enable password sits in the config as plain text. service password-encryption only turns it into type 7, which is trivial to reverse. enable secret stores a hash instead, and if both are set, the secret wins. One more step matters on real gear: plain enable secret creates a type 5 (MD5) hash, and Cisco’s own guidance on protecting secrets calls MD5 weak. On current IOS and IOS XE, use the stronger type 9:

SW1(config)#enable algorithm-type scrypt secret YourStrongPassword

The same thinking applies to remote access. Generate RSA keys of 2048 bits or more, turn on ip ssh version 2, and set transport input ssh rather than telnet ssh, so passwords never cross the wire in clear text.

Cisco Switch Commands vs Router Commands: What’s Different

Most syntax is identical between switches and routers, since both run Cisco IOS. A few features only apply to one:

FeatureSwitchRouter
VLANs and trunkingYesOnly with router-on-a-stick subinterfaces
Spanning Tree (STP)YesNo
Routing protocols (OSPF, EIGRP, RIP)No (unless it’s a Layer 3 switch)Yes
line aux 0No, switches have no aux portYes
Port securityYesNo

Half the “why doesn’t this command work” confusion at CCNA level comes from trying a switch command on a router, or the other way round. Keep this table in mind before you blame the syntax. Running MikroTik instead? The MikroTik CLI commands cheat sheet maps the same tasks to RouterOS.

Go deeper

A cheat sheet tells you the syntax.

The CCNA Lab Workbook is 75 hands-on labs across 950 pages, with EVE-NG and Packet Tracer topologies, so you type these Cisco commands on real switches and routers and watch what breaks.

See the CCNA Workbook →

Cisco Show Commands You’ll Type Most

Configuration is half the job. Verifying it is the other half. These show commands come up in almost every lab:

CommandWhat it shows
show ip interface briefEvery interface, its IP address, and whether it’s up/up
show running-configThe live config in RAM
show vlan briefVLANs and which access ports belong to each
show interfaces trunkTrunk ports and the VLANs allowed on them
show spanning-treeSTP state, root bridge, and port roles
show cdp neighborsDirectly connected Cisco devices and their ports
show ip routeThe routing table
show ip nat translationsThe current NAT table

When something isn’t working, start with show ip interface brief. “Administratively down” means someone typed shutdown. Down/down points to cabling or the far end. Up/down usually means a Layer 2 mismatch. If the problem turns out to be beyond the device, our network troubleshooting commands cheat sheet covers ping, traceroute and the rest of the toolkit.

Cisco IOS Syntax Mistakes That Cost Lab Points

IOS is strict about exact keywords. These five trip people up constantly:

  • An SVI needs no shutdown. After interface vlan 1 and an IP address, typing shutdown disables it. You want no shutdown.
  • It’s switchport nonegotiate, not nonegotiate on its own, to stop DTP on a trunk.
  • It’s no auto-summary under RIP or EIGRP, with the hyphen.
  • It’s maximum-paths 6 under OSPF and EIGRP, also with the hyphen.
  • It’s show ip ospf neighbor and show ip ospf interface, singular.

For PortFast and BPDU guard, use them only on ports facing end hosts. Our BPDU guard guide explains what happens when a switch shows up on one of those ports.

Which Cisco Commands Are on the CCNA 200-301 Exam?

Not all of them. Cisco’s official CCNA 200-301 v1.1 exam topics cover:

  • Still tested: VLANs across multiple switches, trunking and the native VLAN, CDP and LLDP, Rapid PVST+, port security, static routing, single-area OSPFv2, static and pool-based inside source NAT, ACLs, SSH and local passwords.
  • Not on v1.1: EIGRP, RIP, VTP, PPP and Frame Relay. They’re in the PDF because older courses and question banks still use them, but you can skip them for the exam.
  • On the exam but thin in this PDF: EtherChannel on CCNA means LACP (channel-group 1 mode active), and the PDF only shows on, auto and desirable. The exam also asks for DHCP client and relay, while the PDF covers a DHCP server pool.

So use the switching, OSPF, ACL and NAT pages as your core, and treat the EIGRP, RIP and WAN pages as background.

What’s Inside the Cisco Commands Cheat Sheet PDF

  • 190+ Cisco IOS commands across 12 pages, in short sections: basic setup, working environment, SSH, aliases, interfaces, port security, VLANs, voice VLAN, trunking, VTP, STP, EtherChannel, CDP, router interfaces, router-on-a-stick, static and default routes, RIPv2, OSPF, EIGRP with authentication, standard, extended and named ACLs, DHCP server, PPP, Frame Relay and NAT
  • A verify and troubleshoot table after most sections, so you know which show command confirms the config
  • Real syntax examples with sample IPs, VLAN numbers and interface names, not just command names
  • Side notes where they matter: ACL number ranges, STP priority in multiples of 4096, and why clock rate only goes on the DCE side of a serial link

Who It’s For

  • CCNA 200-301 candidates who want one syntax reference instead of a 900-page study guide mid-lab
  • Network+ students working through switching, routing and security
  • Junior network engineers and help desk staff who need a fast syntax check
  • Anyone rebuilding a home lab on EVE-NG or Packet Tracer and forgetting the OSPF wildcard mask for the third time this week

Intermediate level. You’ll get the most out of it if you already know what a VLAN or an ACL is for. Our What Is a VLAN? and What Is NAT? guides cover the concepts, and the CCNA 200-301 study notes give you the full exam picture.

Want to practise these commands instead of just reading them? The CCNA Lab Workbook has 75 labs on EVE-NG and Packet Tracer built around this exact syntax.

Frequently asked questions

Is this Cisco commands cheat sheet PDF really free?
Yes. No credit card, just your email to get the download link.
Is this for Cisco switches, routers, or both?
Both. Most syntax is shared, since switches and routers both run Cisco IOS. The PDF flags the few commands that only work on one, like line aux 0 on routers or spanning tree on switches.
Does this cover the current CCNA 200-301 exam?
The core of it, yes: VLANs, trunking, STP, port security, static routes, OSPF, ACLs, NAT and SSH. EIGRP, RIP, VTP, PPP and Frame Relay aren't on the v1.1 blueprint, and the PDF is thin on LACP EtherChannel and DHCP relay, so cover those from another source.
What's the difference between enable secret and enable password?
enable secret stores the password as a hash and overrides enable password if both are set. enable password stays readable in the config, or type 7 at best, which is easy to reverse. Always use enable secret, and on current IOS use enable algorithm-type scrypt secret for a stronger type 9 hash instead of the default MD5.
What does show ip interface brief show?
One line per interface: its IP address, whether it's administratively up, and its line protocol status. It's the fastest way to spot a shut-down port or a missing IP address.
How do I save the config on a Cisco switch or router?
Run copy running-config startup-config, or the shortcut wr. Without it, your changes are lost at the next reload.

Questions about this PDF

No questions yet. Ask the first one.

Ask a question

Your email address won't be published. We review every question before it appears. How we handle your data. Required fields are marked

Reviewed by

CCDE/CCIE

How to cite this resource

SMEnode Labs (2026). Cisco Commands Cheat Sheet (190+ IOS Commands for Switches and Routers). SMEnode Labs. https://smenode-labs.com/free-pdf/networking/free-pdf-networking-cisco-commands-cheat-sheet-pdf/

APA

SMEnode Labs. (2026). Cisco Commands Cheat Sheet (190+ IOS Commands for Switches and Routers). SMEnode Labs. https://smenode-labs.com/free-pdf/networking/free-pdf-networking-cisco-commands-cheat-sheet-pdf/

BibTeX

@misc{smenodelabs2026,
  title = {Cisco Commands Cheat Sheet (190+ IOS Commands for Switches and Routers)},
  author = {{SMEnode Labs}},
  year = {2026},
  url = {https://smenode-labs.com/free-pdf/networking/free-pdf-networking-cisco-commands-cheat-sheet-pdf/},
  note = {SMEnode Labs}
}