A routing table is used by a router (or sometimes by a computer) to decide where to forward packets. It contains information about the destination and how to reach it via the gateway.


2. Components of the Simplified Routing Table

In a basic routing table that only includes destination and gateway, here's what each column means:

Destination Gateway
The target network or host The next-hop router or gateway

3. What Goes in the Destination Column?

The Destination column specifies the network or host the router is trying to reach. It can contain:

  1. Subnet:
  2. Single Host:
  3. Default Route (0.0.0.0/0):

4. What Goes in the Gateway Column?

The Gateway column specifies the next-hop router where the packet should be sent. It is:

  1. IP Address of the Next-Hop Router:
  2. Direct Connection:

5. Example of a Routing Table

Destination Gateway
192.168.1.0/24 - (directly connected)
10.0.0.0/8 192.168.1.254
8.8.8.8 192.168.1.254
0.0.0.0/0 203.0.113.1

Explanation of the Example