Adding routes to Debian

This adds the route immediately to the Kernel IP routing table (after reboot it will be erased).

# route add -net netmask gw

to print the Kernel IP Routing table:

# netstat -rn

To keep the Static Route persistent you need to edit the file: /etc/network/interfaces

and the static routes in the following format:

up route add [-net/-host] <host/net>/<mask> gw <host/ip> dev <interface>

up route add -net gw dev eno1