Getting the following error when trying to add a default gateway for eth1.

# route add default gw eth1
route: SIOCADDRT: Network is unreachable

Can't figure out why.

  • what is the output of ip link and ip route? – msw Aug 10 '10 at 21:33

You don't have a route to Likely your address is not in the 192.168.228 block, or your netmask is to restrictive to reach it.

| improve this answer | |

The network cable could be disconnected. Try to ping a known IP first, then try to ping the IP of the gateway and see what happens.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy