LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Keep losing route and DNS. (https://www.linuxquestions.org/questions/linux-networking-3/keep-losing-route-and-dns-205243/)

nerdbebo 07-15-2004 01:06 AM

Keep losing route and DNS.
 
Hey...

I'm having a really frusterating problem here, and I can't seem to find out whats wrong.

Throughout the day I will randomly lose my route to the internet. My routing table should look something like this...

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
default 192.168.0.2 0.0.0.0 UG 0 0 0 eth1

Although.... when I lost connectivity, #route displays this.

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth1

I've found if I take eth1 down and back up it will find the route again.

I am running a DHCP server on the network, but I'm using a static address for my laptop. Here is a copy of my ifcfg-eth1.

DEVICE=atml0
BOOTPROTO=static
TYPE=Wireless
MODE=Managed
ESSID=ANY
GATEWAY=192.168.0.2
CHANNEL=6
NETMASK=255.255.255.0
IPADDR=192.168.0.67
DOMAIN=
HWADDR=
IPV6INIT=no
onBOOT=hotplug
USERCTL=no
PEERDNS=yes
RATE=Auto


Also, the next thing I've noticed is my resolv.conf changes everytime I reset eth1.

It changes from my default config to this...

### BEGIN INFO
#
# Modified_by: dhcpcd
# Backup: /etc/resolv.conf.saved.by.dhcpcd
# Process: dhcpcd
# Process_id: 1364
# Script: /sbin/modify_resolvconf
# Saveto:
# Info: This is a temporary resolv.conf created by service dhcpcd.
# The previous file has been saved and will be restored later.
#
# If you don't like your resolv.conf to be changed, you
# can set MODIFY_{RESOLV,NAMED}_CONF_DYNAMICALLY=no. This
# variables are placed in /etc/sysconfig/network/config.
#
# You can also configure service dhcpcd not to modify it.
#
# If you don't like dhcpcd to change your nameserver
# settings
# then either set DHCLIENT_MODIFY_RESOLV_CONF=no
# in /etc/sysconfig/network/dhcp, or
# set MODIFY_RESOLV_CONF_DYNAMICALLY=no in
# /etc/sysconfig/network/config or (manually) use dhcpcd
# with -R. If you only want to keep your searchlist, set
# DHCLIENT_KEEP_SEARCHLIST=yes in /etc/sysconfig/network/dhcp or
# (manually) use the -K option.
#
### END INFO
search |ú@|ú@
nameserver 192.168.0.1

I have verified MODIFY_RESOLV_CONF_DYNAMICALLY=no

Ideas? I feel like I'm a complete newb here, but I've tried everything I know. I have a feeling it is because of the DHCP server on my network, but what confuses me is that I don't have DHCP enabled on my laptop anywhere.

Thanks in advance.

pingu 07-15-2004 05:59 AM

It's in the final line...
Quote:

SuSe 9.1
SuSe is very much like Windows.
Thing is, if you change a configuration-file in SuSe you have to run suseconfig (not sure about the spelling).
If you don't, SuSe will simply overwrite your settings with what it thinks is better...
And suseconfig does take some time, depending of course on your computer... Everytime it runs I believe it goes through every configuration file in you system!

So make your changes and then (in a console, I believe) run "suseconfig".
And if you don't like Microsoft - why run SuSe???

nerdbebo 07-15-2004 06:08 AM

I had no clue...

This kept getting more and more frusterating. Well, maybe I should consider moving from SuSE.


All times are GMT -5. The time now is 11:52 PM.