Show Menu
Cheatography

Helpful Cisco CLI Commands Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

CLI Shortcuts

Ctrl+A
Move Cursor to beginning of line
Ctrl+E
Move cursor to end of line
Ctrl+F
Move forward one character
Ctrl+B
Move backward one character
Esc, F
Move forward one word
Esc, B
Move backward one word
Ctrl+U
Erase line
Ctrl+W
Erase Word
Ctrl+T
Swap current character with the previous one
Ctrl+K
Erase all characters from cursor to end of line
Ctrl+X
Erase all characters from cursor to beginning of line
Ctrl+L
Reprint line
Ctrl+R
Redisplay line (starts new line with same cmd)
Ctrl+P (down arrow)
Display last command
Ctrl+N (down arrow)
Display previous commands
Tab
Complete partial command
Ctrl+C
Exit config mode
Ctrl+Z
Exit config mode return to priv exec mode
Ctrl+S­hift+6
Default Break Sequence

VLAN Troubl­esh­ooting

show vlan
show interface [status | switch­port]
show interface trunk
show vtp status
show vtp password

Routing Troubl­esh­ooting

show ip route [bgp | ospf | static | eigrp | vrf]
show ip bgp [summary | neighbors]
clear ip bgp * [soft]
debug ip bgp [...]
show ip ospf [interface | neighbors]
show ip ospf border­-ro­uters
show ip ospf virtua­l-links
debug ip ospf [...]
show ip eigrp [inter­faces | neighbors | topology | traffic]
clear ip eigrp neighbors
debug ip eigrp [packet | neighbors]
 

Access List Troubl­esh­ooting

show access­-lists [<n­umb­er> | <na­me>]
show ip access­-lists [<n­umb­er> | <na­me>]
show ip access­-lists interface <in­ter­fac­e>
show ip access­-lists dynamic
show ip interface <in­ter­fac­e>
show time-range [<n­ame­>]

Spanning Tree Troubl­esh­ooting

show spanni­ng-tree [summary | detail | root]
show spanni­ng-tree [<i­nte­rfa­ce> | <vl­an>]
show spanni­ng-tree mst

NAT Troubl­esh­ooting

show ip nat transl­ations [verbose]
show ip nat statistics
clear ip nat transl­ations

QoS Troubl­esh­ooting

show policy-map [<i­nte­rfa­ce>]
show <in­ter­fac­e>
show queue <in­ter­fac­e>
show mls qos

IPSec Troubl­esh­ooting

show crypto isakmp sa
show crypto isakmp policy
show crypto ipsec sa
show crypto ipsec transf­orm-set
clear crypto isakmp <co­nni­d>
debug crypto [isakmp | ipsec]

Zone-Based Firewall Troubl­esh­ooting

show zone security
show zone-pair security
show policy-map type inspect
show class-map type inspect
show parame­ter-map type inspect
debug zone security events