CCNA 200-301 · Cheat Sheet
IP Connectivity (25%)
IP CONNECTIVITY (25%) — CHEAT SHEET
ROUTING TABLE ESSENTIALS
Routing Table Codes & Administrative Distance (AD)
| Code | Protocol | AD | Decision Rule |
|---|---|---|---|
| C | Connected | 0 | Directly attached — always preferred |
| L | Local | 0 | Host route to interface IP itself |
| S | Static | 1 | Manual entry — preferred over dynamic |
| O | OSPF | 110 | Dynamic IGP — standard for multi-vendor |
| ? | Unknown | — | Route not installed (AD too high or syntax error) |
Longest prefix match: Most specific subnet mask wins, regardless of protocol. Equal-cost load balancing: Multiple routes with same AD + metric share traffic (default 4, max 16).
OSPF FUNDAMENTALS
Neighbor Requirements (All 5 must match)
| Parameter | Default | Mismatch = ? |
|---|---|---|
| Area ID | 0 (backbone) | No adjacency |
| Hello interval | 10 sec | No hello heard → stuck INIT |
| Dead interval | 40 sec (4× hello) | Timeout → EXSTART |
| Network mask | Derived from config | Adjacency stalls |
| MTU size | 1500 bytes | OSPF sync fails at DBD |
OSPF Neighbor States (Progression)
| State | Meaning | Action Needed |
|---|---|---|
| DOWN | No hellos heard | Check line protocol, passive interface, area ID |
| INIT | Got hello, no hello back yet | Wait or check hello/dead intervals |
| 2-WAY | Bidirectional — router sees itself | Normal in point-to-multipoint; may be final state |
| EXSTART | DR/BDR negotiation starting | Check MTU, neighbor master/slave election |
| EXCHANGE | Swapping DBDs (database descriptions) | Allow 5–10 seconds; check MTU if stuck |
| LOADING | Requesting LSAs | Neighbors syncing databases |
| FULL | ✅ Converged | Normal steady state |
Stuck in 2-WAY? → Check for designated router (DR) on that segment — may be expected (point-to-point or no DR).
OSPF Configuration Checklist
router ospf <PID>
network <subnet> <wildcard> area <area-ID>
passive-interface <if> ! Stop hellos on this interface
no passive-interface <if> ! Enable hellos (undo passive)
auto-cost reference-bandwidth <Mbps> ! Default 100 Mbps (fast eth = cost 1)
Wildcard mask = inverse of subnet mask (e.g., /24 → 0.0.0.255). Network statement matches interface IP + announces that subnet into OSPF.
OSPF Cost Calculation
Cost = Reference Bandwidth / Link Bandwidth
Default: 100 Mbps / interface speed (in Mbps)
Examples:
• Fast Ethernet (100 Mbps) → 100/100 = 1
• Gigabit (1000 Mbps) → 100/1000 = 0 (rounds to 1, minimum)
• Serial 1.544 Mbps → 100/1.544 = 64
Best practice: Set reference bandwidth = your fastest link (usually 10 Gbps).
STATIC ROUTING
Static Route Types
| Type | Syntax | Use Case |
|---|---|---|
| Network static | ip route <dest> <mask> <next-hop> | Specific remote subnet |
| Default static | ip route 0.0.0.0 0.0.0.0 <next-hop> | Route all unknown traffic |
| Host static | ip route <host-IP> 255.255.255.255 <next-hop> | Single device (rarely used) |
| Floating static | ip route ... <next-hop> <AD> | Backup (AD > primary route) |
Next-hop choices: IP address (preferred for troubleshooting) OR outgoing interface (requires ARP on broadcast media).
IPv6 Static Route
ipv6 route <dest-prefix>/<length> <next-hop-IPv6>
Example: ipv6 route 2001:db8:2::/48 2001:db8:1::1
FIRST-HOP REDUNDANCY (HSRP/VRRP/GLBP)
Quick Comparison
| Feature | HSRP | VRRP | GLBP |
|---|---|---|---|
| Virtual IP ownership | Active router | Master (VRRP) | AVG; others backup |
| Virtual MAC | 0000.0c07.acXX | 0000.5e00.01XX | 0007.b400.XXYY |
| Preemption default | Disabled | Enabled | Disabled |
| Load balancing | No | No | Yes (1 AVG + up to 4 AVFs per group) |
| Cisco/Vendor | Cisco proprietary | Standard (RFC) | Cisco proprietary |
HSRP priority range: 0–255 (default 100). Higher = preferred. Preemption: standby <group> preempt to reclaim active role.
IPv4 TROUBLESHOOTING & PING
ICMP Message Types
| Type | Meaning | Troubleshoot |
|---|---|---|
| 0 ✅ | Echo Reply | Successful ping response — path works end-to-end |
| 3 | Destination Unreachable | Codes: 0 = net, 1 = host, 2 = protocol, 3 = port unreachable |
| 8 | Echo Request | Ping sent by source |
| 11 | Time Exceeded (TTL = 0) | Packet expired in transit; used by traceroute |
Aligned to the standard reference materials.
Make this cheat sheet yours
Personalize this sheet — focus it however you study, or build one from the exact questions you keep getting wrong.