Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

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
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

 
discard

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.