Routing is the process that directs traffic between different IP networks, ensuring packets find their way from a source subnet to a destination subnet—no matter how many hops or intermediate routers lie in between. In essence, routers build and consult a routing table to make forwarding decisions, much like a GPS chooses the best roads to reach a destination.


Why Routing Matters


Core Routing Functions

  1. Forwarding
  2. Route Learning
  3. Route Maintenance

Routing Table Basics

A router’s table contains entries like:

Destination Next Hop Interface Metric Type
10.0.1.0/24 192.168.0.2 eth0 10 Dynamic
10.0.2.0/24 192.168.0.3 eth1 20 Static
0.0.0.0/0 192.168.0.1 eth0 5 Default