Show Menu

Basic Cisco IOS Commands Cheat Sheet by

Command-line interface commands and keyboard shortcuts for Cisco IOS
commands     beginner     intermediate     cisco     networking     ios     cli

Modes

Level
Mode
Prompt
1
User EXEC
Device>
2
Privileged EXEC
Device#
3
Global Config
Device­(co­nfig)#
4a
Interface Config
Device­(co­nfi­g-if)#
4b
Line Config
Device­(co­nfi­g-line)

Keyboard Shortcuts

Up Arrow
Automa­tically re-types last command
Ctrl+Shift+6
Oh crap, stop! (Cancels whatever it's currently doing)
Ctrl+C
Exits config mode
Ctrl+Z
Applies current command & returns to priv. EXEC mode
Ctrl+U
Erases anything on current prompt line
Tab
Completes abbrev­iated command

Basic Commands

Short
Command
Complete Command
Func­tion
en
enable
user EXEC > priv. EXEC
conf t
config terminal
priv. EXEC > global config
int
inter­face
global config > interface config
li
line
global config > line config
sh run
show runnin­g-c­onfig
shows current config
cop r s
copy runnin­g-c­onfig startu­p-c­onfig
saves current config
no ip dom lo
no ip domain-lookup
keeps router from trying to read bad cmds as host names

"­Sho­w" Commands

Comm­and
Info­rmation Displa­yed
show version
IOS version, memory capacity, etc.
show mac address-table
MAC address table
show ip route
routing table
show interface g0/0
status, MAC, IP, etc. for Gigabit Ethernet 0/0
show ip interface brief
name, IP, status, etc. (all interf­aces)
 

Initial Config­uration (Switches and Routers)

Comm­and
From Mode
What It Does
hostname xyz
global config
sets hostname to xyz
enable secret xyz
global config
sets encrypted password for priv. EXEC to xyz
banner motd #Autho­rized Access Only#
global config
sets motd banner
line console 0
global config
enters line config mode for console
line vty 0 15
global config
enters line config mode for 16 vty lines
pas­sword xyz
line config
sets line password to xyz
log­in
line config
enables users to login
int vlan 1
global config
enters interface config mode for vlan1
ip address [IP] [subnet]
interface config
sets IP address
no shut
interface config
turns on interface
service passwo­rd-­enc­rypt
global config
encrypts all passwords

Router­-Sp­ecific Config­uration Commands

Comm­and
From Mode
Func­tion
int­erface g0/1
global config
enters interface config for Gigabit Ethernet 0/1
des­cri­ption descr­iption text
interface config
used to document info about the interface
ip address IP/prefix
interface config
sets interf­ace's IPv4 address
ipv6 address IP/prefix
interface config
sets interf­ace's IPv6 address
ipv6 address IP/prefix link-local
interface config
sets interf­ace's IPv6 link-local address
ipv6 unicast-routing
global config
enables IPv6 routing
no shut
interface config
turns on the interface
sdm pre dual def
global config
used if switch won't take IPv6 address
reload
privileged EXEC

Download the Basic Cisco IOS Commands Cheat Sheet

2 Pages
//media.cheatography.com/storage/thumb/tamaranth_basic-cisco-ios-commands.750.jpg

PDF (recommended)

Alternative Downloads

Share This Cheat Sheet!

Like this cheat sheet? Check out our sponsors!

Readable.io is a collection of tools to make your writing better. More readable content means higher conversion rates and better reader engagement. Measure website and document readability, measure keyword density and more!

Click Here To Get Started!

 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          AngularJS Cheat Sheet
          Android Package Manager (pm) Cheat Sheet
          Cisco to Junos Cheat Sheet

          More Cheat Sheets by Tamaranth