Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

How do I make that permanent?


share|improve this question
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

auto lo
iface lo inet loopback
share|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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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