Route commands
Linux
Display Existing Routes (numerical IP address)
$ route -n
Kernel IP routing table
Destination       Gateway           Genmask           Flags    Metric    Ref      Use    Iface
0.0.0.0                192.168.1.1        0.0.0.0           UG       100      0            0    eth0
Make your machine eht0 network interface access all other networks via the gateway 192.168.11.1
# route add default gw 192.168.11.1 eth0
Make your machine eht0 network interface access all 172.19.218.0 networks via the gateway 192.168.11.1
#### ifconfig eth0:0 172.19.218.1/24 up
# route add -net 172.19.218.0 netmask 255.255.255.0 gw 192.168.11.1
Windows
Display Existing Routes
# route -print
Active Routes:
Network Destination          Netmask            Gateway         Interface    Metric
          0.0.0.0             0.0.0.0           192.168.1.1        192.168.10.1       276
Make your machine (192.168.10.1) access network 11.11.11.0 via the gateway 192.168.11.1
# route add 11.11.11.0 mask 255.255.255.0 192.168.11.1 -p