LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-04-2004, 04:37 PM   #1
NoneTheWiser
LQ Newbie
 
Registered: Jun 2004
Location: California
Distribution: Various Redhats
Posts: 2

Rep: Reputation: 0
Question System forgets default gateway


I'm running redhat, and am having a problem with it getting confused as to what the IP of the default gateway is. My default gateway is 192.168.1.1, and everything will work fine for a while (days, maybe even weeks) then the system will stop being able to acces the internet. If I look at the cached routeing table (/proc/net/rt_cache) it has the gateway for eth0 listed as 192.168.1.2 which is my wireless router, and not right. If I run "ip route replace 192.168.1.0/24 dev eth0" the default gateway is restored to 192.168.1.1 and access to the internet is restored. Can anyone suggest what I am doing wrong, and what I need to do to fix it?

Thanks in advance,
Brent
 
Old 06-04-2004, 05:40 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
have you tried manually editing your /etc/sysconfig/network-scripts/ifcfg-eth0? i believe that's the file, sorry if it's not, it's been a while since i used redhat.

<edit>hi NoneTheWiser, welcome to lq. sorry i forgot that.</edit>

Last edited by Peacedog; 06-04-2004 at 05:42 PM.
 
Old 06-04-2004, 05:56 PM   #3
NoneTheWiser
LQ Newbie
 
Registered: Jun 2004
Location: California
Distribution: Various Redhats
Posts: 2

Original Poster
Rep: Reputation: 0
The GATEWAY line in ifcfg-eth0 is correct, it's 192.168.1.1.

What I think is happening is the system tries to send an email from a cronjob while the DSL router is down and when it can't reach the outside world, deletes/modifies the default route. All of the places I can think to look for setting the default gateway are set correctly, but when the default gateway isn't working for reasons only my ISP knows, the system changes the setting in memory. I just can't figure where it gets the value from or how to stop it.

Thanks,
Brent
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Default gateway dooda5555 Linux - Networking 1 06-17-2005 11:43 AM
HELP default gateway MrSavage Linux - Newbie 2 01-10-2005 07:46 AM
Default Gateway rrosenkoetter Linux - Networking 3 08-27-2004 08:41 AM
default gateway avikosan Linux - Networking 3 12-09-2003 05:47 PM
What's a default gateway and do I need one? Travis86 Linux - Newbie 8 05-25-2003 05:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration