Can't set static route?
Using Ubuntu 9.1, I get the error "SIOCADDRT: No such process" whenever I try to set a static route using
sudo route add -net dest netmask 255.255.255.0 gw gateway
and
sudo ip route add dest/24 via gateway dev eth0
gives me "RTNETLINK answers: No such process".
From googling, it looks like others have had this problem, but I haven't found any working solutions yet. Anyone have any idea how to fix this?
edit: Ok, finally found the issue. The gateway has to be on the same subnet... ugh, is there anyway to use a gateway on a different subnet without tunnels? I can ping the machine I want to be the gateway, so I feel like I should be allowed to set it as a next hop for specific addresses.
Last edited by homer_3; 04-21-2010 at 08:21 AM.
|