This shows you the differences between two versions of the page.
| — |
adding_a_route [2016/11/25 22:38] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ===== Adding a Network Route in Linux ===== | ||
| + | As root: | ||
| + | |||
| + | ==== Adding a Route ==== | ||
| + | |||
| + | route add -net 192.168.15.0 netmask 255.255.255.0 gw 192.168.1.1 | ||
| + | |||
| + | First value is destination network address, then the destinsation' | ||
| + | |||
| + | ==== Adding a Default Gateway ==== | ||
| + | |||
| + | route add default gw 192.168.1.1 | ||
| + | |||
| + | IP address is address of gateway machine. | ||