The route command is the interface used to access the Linux kernel’s routing tables. The route command operates in three modes: display, add, and delete. When used to add or delete routes from the routing table, its use is generally limited to adding and removing static route entries.

Using route to Display Routing Information

When route is used with no parameters, the route command prints the routing table to stdout:

[root@lefty /root]# route 
Kernel IP routing table 
Destination     Gateway         Genmask          Flags Metric Ref    Use Iface 
Lefty           *       UH    0      0        0 eth0     *         U     0      0        0 eth0       *             U     0      0        0 lo 
default          UG    0      0        0 eth0 

The Destination column when combined with the Genmask, which is ...

Get Linux® Routing now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.