As the title says the default gateway that I set in the gui or through terminal resets. In the gui it resets as soon as I click apply, in the terminal it doesnt show the gateway when I type 'sudo ifconfig'. I have gone through the command line steps as well as through the gui to no avail. I also edited my interfaces and my resolv.conf files.
interfaces:
resolv.conf:Code:auto eth0 iface eth0 inet static address 192.168.1.100 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.1
x's replaced with my actual DNS addresses in the actual file.Code:name server xxx.xxx.xxx.xxx name server xxx.xxx.xxx.xxx
Im at a loss here as Im not that good with linux, but no matter what I do it always resets the default gateway IP to 0.0.0.0. Oh and Im using Ubuntu 9.04 desktop.
-
not sure exactly what the problem is (I use static DHCP and no GUIs) but I can fix it temporarily for you at least
sudo route add default gw 192.168.1.1 (interface)
resolv.conf has to do with name resolution (along with /etc/hosts) and nothing to do with routing fyi. -
ALLurGroceries Vegan Vermin Super Moderator
Maybe it's network-manager or nm-applet messing with your manual configuration. If you've got it running check its settings or maybe close it and see if your manual settings work.
-
-
Hi,
what desktop you use?
I had similar troubles in fedora 9 with the kde 4.0.
Anyway you can set up the gateway ip manually by opening the config file in e.g. vi editor.
Are you sure, that your settings are saved properly after manual editing the conf file- did you try for e.g. to 'cat' the file after saving?
As someone mentioned, it could be the NetworkManager messing things up, try to disable it in your runlevel and let the 'network' service to run. Other thing to try is to boot to runlevel without X desktop - only with prompt and then to write changes to your netw. conf file, so no X app try to write into it.
And e.g. there can be other conf file where gateway is specified ... in RedHat it is in:
/etc/sysconfig/network where you can specify the gateway and other network info (but is overriden by setting for particular netw. interface).
But i'm not familiar with ubuntu, so probably someone other could point you more.
gl&hf
Default gateway IP resets
Discussion in 'Linux Compatibility and Software' started by Thaenatos, May 21, 2009.