I upgraded my server from Ubuntu 8.10 to 9.04 and now my default route is missing. So every time I boot I have to manually add it back with the command:

sudo route add default gw 192.168.10.1

How do I make that permanent?

Thanks.

link|improve this question
feedback

1 Answer

up vote 10 down vote accepted

I believe the configuration file is in /etc/network/interfaces on ubuntu to add a gateway a.b.c.d,

The file would read something like:

iface eth0 inet static
address 172.16.0.8
netmask 255.240.0.0
gateway 172.16.0.1

auto lo
iface lo inet loopback
link|improve this answer
I should have looked there first. I had bad data in my interfaces file. Thanks! – paul May 12 '09 at 23:05
If it makes you feel better I checked mine and thought I might be wrong because I had no data at all for eth0 – sparks May 13 '09 at 0:28
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.