Module 8.1 35 minIntermediate
The 50-command cheat sheet
Every core CLI command you should be able to type from memory, organized by mode.
Course plan — preview
What you'll learn
- Recall the most-used CLI commands without prompting.
- Recognize each command's mode and purpose.
User and privileged exec
enable ! drop into privileged mode
configure terminal ! enter global config
ping <ip> ! L3 reachability
traceroute <ip> ! per-hop path
show version ! OS version, uptime
show ip interface brief ! IP/up state per interface
show ip route ! routing table
show ip protocols ! dynamic protocols summary
show running-config ! current running config
show startup-config ! NVRAM saved config
show vlan brief ! VLAN/port mapping (switch)
show mac address-table ! learned MACs (switch)
show interfaces status ! link/speed/vlan per port (switch)
show interfaces trunk ! trunk negotiation/state
show ip ospf neighbor ! OSPF adjacencies
show cdp neighbors ! proprietary neighbour discovery
show ip dhcp binding ! handed-out leases
copy running-config startup-config ! save
write memory ! shorter alias
clear arp ! flush ARP cache
clear mac address-table dynamicGlobal config
hostname <name>
ip route <net> <mask> <next-hop>
ip route 0.0.0.0 0.0.0.0 <next-hop> ! default
ip default-gateway <ip> ! switch that does not route
vlan <id> / name <text>
spanning-tree mode rapid-pvst
spanning-tree portfast default ! every access port becomes an edge port
lldp run ! turn on standard LLDP
ip dhcp pool <name>
ip dhcp excluded-address <start> <end>
router ospf <pid>
network <ip> <wildcard> area <id>
ip access-list extended <name>
crypto key generate rsa modulus 2048
ip ssh version 2
username <u> privilege 15 secret <pw>
banner motd # ...message... #
enable secret <pw>
line console 0 / line vty 0 4
service password-encryption
no ip domain-lookup10 more sections in this chapter, plus a 4-question quiz.
Course plan
Modules 2–8 are part of the Course & Lab Pass and All-Access Max — start with a free account
You can see the title, summary, learning objectives and the opening sections. The rest of this chapter, like all of modules 2–8, comes with the Course & Lab Pass and All-Access Max. A free account opens Module 1: How Networks Work end-to-end and saves your labs — start there, no card required.
- Read every chapter in Module 1 — How Networks Work
- Save labs of up to 5 devices
- Save up to 3 topologies
- See the full course syllabus + chapter titles
Free account · no card required · compare plans any time