Routing
From Attie's Wiki
(Difference between revisions)
m (Created page with '=The Linux `route` command= Below is a list of useful commands <source lang="bash"> # show the routing table, with numeric addresses route -n # add a default route, through eth0…') |
Revision as of 12:20, 16 February 2012
The Linux `route` command
Below is a list of useful commands
# show the routing table, with numeric addresses route -n # add a default route, through eth0 route add default dev eth0 # add a route to 10.150.0.0/24 through eth0 route add -net 10.150.0.0/24 dev eth0 # add a route to 10.150.0.0/24 through eth0, and the gateway 192.168.0.15 route add -net 10.150.0.0/24 gw 192.168.0.15 dev eth0
SIOCADDRT: No such process
The most unhelpful error possible. It generally means you have done something silly... check:
- Your addresses - e.g. is the gateway you specified actually directly accessible through the interface?