PDA

View Full Version : Debian Etch auto-reconfigures network after I configure it


unclecameron
24th July 2007, 00:33
Might sound new and stupid, but:

a. when i edit /etc/network/interfaces and change the ip, then run ifconfig after /etc/init.d/networking restart, the IP on ifconfig doesn't change, also

b. I tried using the Gnome network manager to change DNS, and after I change the values and hit "ok" I go vi /etc/resolv.conf and the values are not changed, though I'm root.

What really stupid thing am I missing, this is how I always did it in Sarge.

Thanks,
Cameron
San Diego

falko
24th July 2007, 15:34
What's in /etc/network/interfaces? Are your changes still in there, or did they disappear?

unclecameron
25th July 2007, 01:43
when I use either the gnome manager or vi /etc/network/interfaces it changes the values, but then when I /etc/init.d/networking restart, then run ifconfig, my IP doesn't match what I just edited in /etc/network/interfaces. But then after I reboot and run ifconfig the ip is correct. Could this be related to SELinux somehow?

falko
25th July 2007, 17:43
Is SELinux enabled? If so, switch it off.

unclecameron
5th November 2007, 20:33
What I found is that running

/etc/init.d/networking restart

didn't really work, but it does work if you use:

ifdown eth0

then

ifup eth0