CCNA Cheat Sheet
Quick-reference summary of the key facts for the 200-301 exam.
This cheat sheet collects the facts worth memorising in the last few days before the exam. It is a revision aid, not a substitute for the study guides: if any line here is unfamiliar, go back to the guide that explains it before you sit the exam. The highest-value items are the subnetting table, the port numbers, and the administrative distances — those three topics produce more exam questions than any other facts on this page.
Subnetting quick reference
Usable hosts = 2^(host bits) - 2. Block size = 256 - mask value in the interesting octet. Subnets created = 2^(borrowed bits).
| Prefix | Mask | Block size | Usable hosts |
|---|---|---|---|
| /30 | 255.255.255.252 | 4 | 2 (point-to-point links) |
| /29 | 255.255.255.248 | 8 | 6 |
| /28 | 255.255.255.240 | 16 | 14 |
| /27 | 255.255.255.224 | 32 | 30 |
| /26 | 255.255.255.192 | 64 | 62 |
| /25 | 255.255.255.128 | 128 | 126 |
| /24 | 255.255.255.0 | 256 | 254 |
| /23 | 255.255.254.0 | 512 | 510 |
| /22 | 255.255.252.0 | 1024 | 1022 |
| /20 | 255.255.240.0 | 4096 | 4094 |
| /16 | 255.255.0.0 | 65536 | 65534 |
Private ranges (RFC 1918): 10.0.0.0/8, 172.16.0.0/12 (172.16.0.0 - 172.31.255.255), 192.168.0.0/16. Loopback: 127.0.0.0/8. APIPA: 169.254.0.0/16. Multicast: 224.0.0.0/4.
Key port numbers
| Service | Port | Protocol |
|---|---|---|
| FTP | 20/21 | TCP |
| SSH | 22 | TCP |
| Telnet | 23 | TCP |
| SMTP | 25 | TCP |
| DNS | 53 | UDP (TCP for zone transfers) |
| DHCP | 67 (server) / 68 (client) | UDP |
| TFTP | 69 | UDP |
| HTTP | 80 | TCP |
| POP3 | 110 | TCP |
| NTP | 123 | UDP |
| SNMP | 161 (query) / 162 (trap) | UDP |
| HTTPS | 443 | TCP |
| Syslog | 514 | UDP |
| TACACS+ | 49 | TCP |
| RADIUS | 1812 (auth) / 1813 (acct) | UDP |
Administrative distances
Connected 0, Static 1, EIGRP internal 90, OSPF 110, RIP 120, iBGP 200, Unreachable 255. Lower AD wins between routes to the same prefix — but longest prefix match is checked first.
Command summary
- Show: show ip interface brief, show ip route, show running-config, show vlan brief, show interfaces trunk, show mac address-table, show spanning-tree, show etherchannel summary, show ip ospf neighbor, show cdp neighbors, show ip nat translations, show port-security
- Addressing: ip address 192.168.1.1 255.255.255.0, ipv6 address 2001:db8::1/64, ipv6 unicast-routing
- Routing: ip route 0.0.0.0 0.0.0.0 192.168.1.2, router ospf 1, network 192.168.1.0 0.0.0.255 area 0, passive-interface Gi0/1
- Switching: vlan 10, switchport mode access, switchport access vlan 10, switchport mode trunk, switchport trunk native vlan 99, channel-group 1 mode active
- Security: enable secret, username admin privilege 15 secret, access-list 100 permit tcp any any eq 80, ip access-group 100 in, switchport port-security, ip dhcp snooping vlan 10, ip arp inspection vlan 10
- Services: ip nat inside / ip nat outside, ip helper-address 10.1.1.5, ntp server 192.168.1.1, logging host 10.1.1.10, crypto key generate rsa, transport input ssh
Facts worth memorising
- OSPF: hello 10s, dead 40s; DR = highest priority then highest router ID; cost = reference bandwidth / interface bandwidth; multicast 224.0.0.5 (all routers) and 224.0.0.6 (DR/BDR).
- STP: root bridge = lowest bridge ID; PortFast for endpoints only; BPDU guard shuts down a PortFast port that receives a BPDU; root guard blocks superior BPDUs; loop guard blocks ports that stop receiving BPDUs.
- Wireless: non-overlapping 2.4 GHz channels are 1, 6, 11; WPA2 uses AES/CCMP; WPA3 uses SAE; lightweight APs use CAPWAP to the WLC.
- Syslog severity: 0 Emergency, 1 Alert, 2 Critical, 3 Error, 4 Warning, 5 Notification, 6 Informational, 7 Debugging — lower is more severe.
- IPv6: global unicast 2000::/3, unique local fc00::/7, link-local fe80::/10, multicast ff00::/8, loopback ::1, EUI-64 inserts fffe and flips the 7th bit.
- REST/CRUD: Create POST, Read GET, Update PUT/PATCH, Delete DELETE. Status codes: 200 OK, 201 Created, 400 Bad Request, 401 Unauthorized, 404 Not Found.
OSPF and spanning tree at a glance
OSPF: link-state protocol, AD 110, single area 0 for the CCNA. Neighbours need the same area, subnet, hello/dead timers (10/40 seconds on broadcast and point-to-point links), authentication, and stub flags, plus unique router IDs. The router ID is the manually configured value if one is set, else the highest loopback address, else the highest active physical interface address. On broadcast networks the DR and BDR are elected by highest priority (default 1, 0 means never), then highest router ID. DR/BDR listen on 224.0.0.6; all OSPF routers listen on 224.0.0.5. Cost equals reference bandwidth (default 100 Mbps) divided by interface bandwidth, minimum 1. Adjacency states run Down, Init, 2-Way, ExStart, Exchange, Loading, Full — the adjacency is fully synchronised only in the Full state. Use passive-interface on LAN segments with no neighbours.
Spanning tree (Rapid PVST+): one instance per VLAN. The root bridge has the lowest bridge ID (priority, default 32768 in steps of 4096, then MAC address). Each non-root switch picks one root port (lowest path cost to the root); each segment has one designated port; other ports are alternate (blocked). Port states are discarding, learning, and forwarding. PortFast goes straight to forwarding on endpoint ports only. BPDU guard error-disables a PortFast port that receives a BPDU; BPDU filter stops BPDUs entirely; root guard blocks a port receiving a superior BPDU; loop guard keeps a port blocked when BPDUs stop arriving. EtherChannel: LACP active initiates, passive responds (passive-passive fails); PAgP desirable/auto behave the same way; mode on forces the bundle without negotiation; member links must match speed, duplex, and VLAN.
Troubleshooting quick checks
- Host cannot reach anything: check the host's IP address, mask, and cable; look for a 169.254.x.x APIPA address, which means DHCP failed.
- Host reaches its own subnet but nothing beyond it: check the default gateway — it must be an address on the host's own subnet, usually the SVI or router subinterface.
- Host reaches IP addresses but not names: DNS problem — check the DNS server setting.
- Link is up but slow with errors: suspect a duplex mismatch; check show interfaces for collisions and late collisions.
- Trunk not carrying a VLAN: check switchport trunk allowed vlan on both sides and confirm the VLAN exists on both switches.
- OSPF neighbour stuck below Full: check area, subnet, timers, authentication, MTU, and router ID uniqueness.
- Port err-disabled: check for a port security violation or BPDU guard; fix the cause, then shut/no shut the interface.