CCNA Routing β Clear & Exam-Focused Guide π
π What is Routing?
Routing is the process of selecting the best path for data packets to travel from one network to another using a router.
π§ Router Basics
- Works at OSI Layer 3 (Network)
- Uses IP addresses
- Maintains a routing table
Check routing table:
show ip route
πΊοΈ Types of Routing (CCNA)
1οΈβ£ Static Routing
Manually configured routes.
ip route 0.0.0.0 0.0.0.0 192.168.1.1
β Simple
β Not scalable
2οΈβ£ Default Routing
Used when no specific route exists.
Example:
ip route 0.0.0.0 0.0.0.0 192.168.1.1
3οΈβ£ Dynamic Routing
Routers learn routes automatically.
Protocols in CCNA:
- RIP
- OSPF
- EIGRP (Cisco)
π Routing Protocols (CCNA Level)
πΉ RIP
- Distance Vector
- Metric: Hop count
- Max hops: 15
πΉ OSPF
- Link State
- Metric: Cost
- Fast & scalable
- Uses areas
πΉ EIGRP
- Advanced distance vector
- Metric: Bandwidth + Delay
- Cisco proprietary
π Administrative Distance (Very Important)
Route TypeADConnected0Static1EIGRP90OSPF110RIP120
Lower AD = more trusted
π§© Longest Prefix Match
Router selects the route with:
π Most specific subnet mask
Example:
- /24 preferred over /16
π Routing & Security
- Use ACLs
- Disable unused interfaces
- Use authentication for routing protocols