Cheatography
https://cheatography.com
Modes
Level |
Mode |
Prompt |
1 |
user EXEC |
Switch> |
2 |
Privileged EXEC |
Switch# |
3 |
Global Config |
Switch(config)# |
4a |
Interface Config |
Switch(config-if)# |
4b |
Line Config |
Switch(config-line)# |
Keyboard Shortcuts
Up Arrow |
Automatically 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 abbreviated command |
"Show" Command
Command |
Information Displayed |
|
IOS version, memory capacity, etc. |
|
MAC address table |
|
routing table |
|
status, MAC, IP, etc. for GigaitEthernet 0/0 |
|
name, IP, status, etc. (all interfaces) |
General Commands
Short Command |
Complete Command |
Function |
|
|
user EXEC > priv. EXEC |
|
|
priv. EXEC > global config |
|
|
global config > interface config |
|
|
global config > line config |
|
|
shows current config |
|
copy running-config startup-config
|
saves current config |
|
|
keeps router from trying to read bad commands as host names |
|
|
Resets Config |
|
|
Reset VLAN configs |
|
|
Initial Configuration (Switches and Routers)
Command |
From Mode |
What It Does |
|
global config |
sets hostname to xyz |
|
global config |
sets encrypted password for priv. EXEC to xyz |
service password-encrypt
|
global config |
encrypts all passwords |
|
global config |
enters line mode for console |
|
global config |
enters line config mode for 16 vty lines |
|
line config |
sets line password to xyz |
|
line config |
enables users to login |
|
global config |
enters interface config mode for vlan 1 |
|
interface config |
sets IP address |
|
interface config |
turns on interface |
|
global config |
sets motd banner |
Router-Specific Configuration Commands
Command |
From Mode |
Function |
|
global config |
enters interface config for GigabitEthernet 0/1 |
|
interface config |
sets interface's IPv4 address |
|
interface config |
turns on the interface |
description description text
|
interface config |
used to document info about the interface |
|
interface config |
sets interface's IPv6 address |
`ipv6 address IP/prefix link-local |
interface config |
sets interface's IPv6 link-local address |
|
global config |
enables IPv6 routing |
Other Commands
Command |
From Mode |
Function |
sdm pre dual def |
global config |
used if switch won't take IPv6 address |
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets