Cisco IOS Command Cheat Sheet for Routers and Switches

Jay Rogers

November 22nd, 2011

Blog post header image

I've been receiving numerous questions about programming Cisco Routers and Switches. This document contains my notes from when I had to program a Cisco Router running Cisco IOS. While primarily focused on routers, most commands are also applicable to switches.

The commands in this cheat sheet are organized into two modes:

  • Enable mode
  • Config terminal mode

Make sure to use the commands according to the mode you're currently in.

This Cisco IOS Command Cheat Sheet is valuable for both advanced users and beginners. If you have any questions, please leave a comment!

Enable Mode Commands

CommandDescription
write eraseErases config file
reloadReloads config files
enableEnters console mode
config tEnters config mode
clock set 10:50:00 Oct 26 2009Sets clock to 10:50AM and the date to October 26, 2009
show ip interface briefShows interfaces
copy running-config startup-configCopies running config and saves it to the startup config

Config T Mode Commands

CommandDescription
enable secret <password>Sets enable secret to password of choice
enable password <password>Sets enable password to password of choice
line con 0
password <password>
logging synchronous
exit
Sets console password to password of choice and prevents router from displaying annoying messages
line aux 0
password <password>
exit
Sets AUX port password to password of choice
line vty 0 4
password <password>
exit
Sets Telnet port password to password of choice
service password-encryptionEnables password encryption
hostname <router name>Sets name of router to name of choice

Want to work together?

Professional developers choose Server Side Up to ship quality applications without surrendering control. Explore our tools and resources or work directly with us.

Join our community

We're a community of 3,000+ members help each other level up our development skills.

Platinum Sponsors

Active Discord Members

We help each other through the challenges and share our knowledge when we learn something cool.

Stars on GitHub

Our community is active and growing.

Newsletter Subscribers

We send periodic updates what we're learning and what new tools are available. No spam. No BS.

Sign up for our newsletter

Be the first to know about our latest releases and product updates.

    Privacy first. No spam. No sharing. Just updates.