Basic Cisco IOS Commands Cheat Sheet
by River L. (Tamaranth) via cheatography.com/42882/cs/12851/
Modes Other Commands
Level Mode Prompt Command From Mode Function
1 User EXEC Device> sdm pre dual def global config used if switch won't take IPv6
address
2 Privileged EXEC Device#
3 Global Config Device(config)#
General Commands
4a Interface Config Device(config-if)#
Short Complete Command Function
4b Line Config Device(config-line)
Command
Keyboard Shortcuts en enable user EXEC > priv.
EXEC
Up Arrow Automatically re-types last command
conf t config terminal priv. EXEC > global
Ctrl+Shift+6 Oh crap, stop! (Cancels whatever it's currently doing) config
Ctrl+C Exits config mode int interface global config > interface
Ctrl+Z Applies current command & returns to priv. EXEC mode config
Ctrl+U Erases anything on current prompt line li line global config > line
config
Tab Completes abbreviated command
sh run show running- shows current config
"Show" Commands config
Command Information Displayed cop r s copy running- saves current config
config startup-
show version IOS version, memory capacity, etc.
config
show mac address-table MAC address table
no ip dom lo no ip domain-lookup keeps router from trying
show ip route routing table
to read bad cmds as
show interface g0/0 status, MAC, IP, etc. for Gigabit host names
Ethernet 0/0 era star [Tab] erase startup- MUST use after labs
show ip interface brief name, IP, status, etc. (all interfaces) config to reset router
configs!
del vlan.dat delete vlan.dat MUST use after labs
to reset router
configs!
By River L. (Tamaranth) Published 30th September, 2017. Sponsored by CrosswordCheats.com
cheatography.com/tamaranth/ Last updated 21st February, 2019. Learn to solve cryptic crosswords!
Page 1 of 2. http://crosswordcheats.com
Basic Cisco IOS Commands Cheat Sheet
by River L. (Tamaranth) via cheatography.com/42882/cs/12851/
Initial Configuration (Switches and Routers) Router-Specific Configuration Commands
Command From Mode What It Does Command From Mode Function
hostname xyz global config sets hostname to interface g0/1 global config enters
xyz interface
enable secret xyz global config sets encrypted config for
password for priv. Gigabit
Ethernet
EXEC to xyz
0/1
service global config encrypts all
ip address IP/prefix interface config sets
password-encrypt passwords
interface's
line console 0 global config enters line config IPv4
mode for console address
line vty 0 15 global config enters line config no shut interface config turns on
mode for 16 vty the
lines interface
password xyz line config sets line password description description text interface config used to
to xyz document
login line config enables users to info about
login the
interface
int vlan 1 global config enters interface
config mode for ipv6 address IP/prefix interface config sets
vlan1 interface's
IPv6
ip address [IP] [subnet] interface config sets IP address
address
no shut interface config turns on interface ipv6 address IP/prefix link-local interface config sets
banner motd #Text Here# global config sets motd banner interface's
IPv6 link-
local
address
ipv6 unicast-routing global config enables
IPv6
routing
By River L. (Tamaranth) Published 30th September, 2017. Sponsored by CrosswordCheats.com
cheatography.com/tamaranth/ Last updated 21st February, 2019. Learn to solve cryptic crosswords!
Page 2 of 2. http://crosswordcheats.com