The 50-command cheat sheet
Every core CLI command you should be able to type from memory, organized by mode.
Every core CLI command you should be able to type from memory, organized by mode.
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 dynamichostname <name>
ip route <net> <mask> <next-hop>
ip route 0.0.0.0 0.0.0.0 <next-hop> ! default
ip default-gateway <ip> ! L2 switch / endpoint
vlan <id> / name <text>
spanning-tree mode rapid-pvst
spanning-tree portfast default
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-lookup1 more section in this chapter, plus a 1-question quiz.
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: Network Foundations end-to-end and saves your labs — start there, no card required.
NetForge-AI is an independent educational platform and is not affiliated with, endorsed by, or sponsored by any networking vendor or certification body. All product names, protocols, and standards referenced are the property of their respective owners and are used for descriptive, educational purposes only.
Free account · no card required · compare plans any time