Linux Route Add
route add -net netmask gw
route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.1.1.1
</code></pre>
ip route add / via
ip route add 10.0.0.0/8 via 10.1.1.1
</code></pre>
Either of these will show your current routing table depending which network tools are installed.
route -n
ip route show
## Permanent / Static Routes
Adding a static route will survive reboots.
### Ubuntu / Debian - Static Routes
/etc/network/interfaces
up route add -net netmask gw
up route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.1.1.1
</code></pre>
up ip route add / via
up ip route add 10.0.0.0/8 via 10.1.1.1
</code></pre>
service networking restart
### Ubuntu Using Netplan
## Red Hat Systems / RHEL / Fedora / Centos