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:
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!
Command | Description |
---|---|
write erase | Erases config file |
reload | Reloads config files |
enable | Enters console mode |
config t | Enters config mode |
clock set 10:50:00 Oct 26 2009 | Sets clock to 10:50AM and the date to October 26, 2009 |
show ip interface brief | Shows interfaces |
copy running-config startup-config | Copies running config and saves it to the startup config |
Command | Description |
---|---|
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-encryption | Enables password encryption |
hostname <router name> | Sets name of router to name of choice |
Professional developers choose Server Side Up to ship quality applications without surrendering control. Explore our tools and resources or work directly with us.
We're a community of 3,000+ members help each other level up our development skills.
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.
Be the first to know about our latest releases and product updates.