Unable to set default gateway

Posted by GrandMasterFlush on Ask Ubuntu See other posts from Ask Ubuntu or by GrandMasterFlush
Published on 2012-06-07T09:22:39Z Indexed on 2012/06/07 10:48 UTC
Read the original article Hit count: 376

Filed under:
|

I'm running Ubuntu server via Hyper-V and have successfully installed it but seem unable to ping the server or ping any other machines on the network from the server.

After doing a bit of reading I've noticed that the default gateway isn't set but when I try and set it I keep getting error messages which I can't understand.

From this article I've tried

ip route add default via 10.0.10.200

Which reports: RTNETLINK answers: Operation not permitted

If I try running it prefixed with sudo but it reports: `RNETLINK answers: No such process

I've editted /etc/network/interfaces but when I start the machine and type netstat -nr there is nothing listed.

Can anyone tell me where I'm going wrong please?

EDIT : /etc/network/interfaces contains:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

© Ask Ubuntu or respective owner

Related posts about networking

Related posts about dhcp