Lukas' Notes

networks

Definition

Routing Table

A routing table is a data structure maintained by a router that maps destination IP addresses to the next hop for forwarding packets. Each entry specifies a destination network, a netmask, a gateway, an outgoing interface, and a metric.

Static vs. Dynamic

Routing tables can be static, which is typical for smaller networks, or dynamic, where entries are updated automatically by routing protocols such as OSPF or BGP.

Example

Routing table

DestinationNetmaskGatewayInterfaceMetric
0.0.0.00.0.0.0203.0.113.1eth01
192.168.1.0255.255.255.00.0.0.0eth10
10.0.0.0255.255.0.0192.168.1.254eth12
203.0.113.0255.255.255.00.0.0.0eth01
127.0.0.1255.0.0.00.0.0.0lo0