Linux 101 : Interpreting the output of "ip route" and adding routes to a host

The output of the "ip route show" might be confusing to us at first.

Below is an example of the output of that command:

The first line of output tells us that the default route for any packet that doesn't have a corresponding route in our routing table will go through "eno1" using the the default gateway "".

The second line tells us that the packets sent to an IP address belonging to the "" network -,, ... -, will be sent to "eno1" which has the "" IP address.

Adding new routes:

To be able to add routes between hosts, we could use the below command:

  • : network we want to reach 
  • : address we use to get to the network we want to reach "". 
  • eno1 : interface name used.
Adding a default gateway:

To add a default gateway, we could use the below command:


Leave as a comment: