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.

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:
| Feature | Switch | Router |
|---|---|---|
| VLANs and trunking | Yes | Only with router-on-a-stick subinterfaces |
| Spanning Tree (STP) | Yes | No |
| Routing protocols (OSPF, EIGRP, RIP) | No (unless it’s a Layer 3 switch) | Yes |
line aux 0 | No, switches have no aux port | Yes |
| Port security | Yes | No |
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:
| Command | What it shows |
|---|---|
show ip interface brief | Every interface, its IP address, and whether it’s up/up |
show running-config | The live config in RAM |
show vlan brief | VLANs and which access ports belong to each |
show interfaces trunk | Trunk ports and the VLANs allowed on them |
show spanning-tree | STP state, root bridge, and port roles |
show cdp neighbors | Directly connected Cisco devices and their ports |
show ip route | The routing table |
show ip nat translations | The 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. Afterinterface vlan 1and an IP address, typingshutdowndisables it. You wantno shutdown. - It’s
switchport nonegotiate, notnonegotiateon its own, to stop DTP on a trunk. - It’s
no auto-summaryunder RIP or EIGRP, with the hyphen. - It’s
maximum-paths 6under OSPF and EIGRP, also with the hyphen. - It’s
show ip ospf neighborandshow 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 showson,autoanddesirable. 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 rateonly 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.
No questions yet. Ask the first one.