LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 07-02-2004, 09:02 AM   #1
virgos
LQ Newbie
 
Registered: Aug 2003
Location: Brazil
Distribution: Suse 10
Posts: 8

Rep: Reputation: 0
Network dies after 25 minutes on FC2


Hi,

I am experiencing a very strange network problem and I hope somebody can help me. I have two laptops at home that are linked as a small network. The first one is connected with my ISP through the eth0 and with the second laptop through a PCMCIA-eth1 (3com). The second laptop (the client) is connected through the eth0 with the first one (the server).

Earlier, the first laptop (server) used to run Fedora 1 and the second (the client) used to run Red Hat 9. Everything worked fine. I upgraded both computers and they run now Fedora Core 2. Now when I turn on the computers, the network works for something like 25 minutes and then dies and I am not able to re-establish it. Even stranger is the fact that I am only able to connect the two computers again in the morning after.

The connection between the first laptop and the external world (ISP) continues to work even after the network between both computers died.

The network is build as follows:

Network: 192.168.0.0
Computer 1: 192.168.0.1 (static IP), runs also a dhcp server, a IP-masquarade, and (I think) a DNS sever (I follow a network how-to and configured the file named.conf).
Computer 2: obtains an IP automatically (dhcp) --- used to be always 192.168.0.58, but is now always 192.168.0.60

While the network is running (for 25 minutes...), I am able, from the client computer, to ping the server (192.168.0.1) and also the ISP. And I have access to the web, email etc. But only for 25 minutes.

Thank you very much,

PS. I have already tried to use a static IP in the client too (192.168.0.2). This also works for only 25 minutes...
 
Old 07-02-2004, 09:16 AM   #2
davidbalt
Member
 
Registered: Feb 2004
Distribution: Gentoo -- always from stage1
Posts: 85

Rep: Reputation: 15
What kernel are you using? Are there any clues in /var/log/messages?
 
Old 07-04-2004, 07:56 AM   #3
virgos
LQ Newbie
 
Registered: Aug 2003
Location: Brazil
Distribution: Suse 10
Posts: 8

Original Poster
Rep: Reputation: 0
Hi,
I'm using kernel version 2.6.5-1.358 (Fedora Core 2) and unfortunately I didn't find any clues in /var/log/messages (neither on the server nor on the client).
I don't know what to do.
 
Old 07-04-2004, 06:43 PM   #4
NetAX
Member
 
Registered: Mar 2004
Location: Boston, MA
Distribution: SuSE Linux Open/Enterprise, Red Hat, Ubuntu
Posts: 147

Rep: Reputation: 17
Maybe your lease times have expired since you said the first laptop provides DHCP for the second laptop. If the second laptop does not ask the first laptop to renew its IP it will expire after a certain period of time(laptop 1 will not allow access to laptop2<-that maybe your problem). That is the only thing i can think of that has to do with time in your situation.

Open your DHCP configuration file and look at the default lease times. if your unsure post your dhcpd.conf file here.
 
Old 07-05-2004, 09:54 AM   #5
virgos
LQ Newbie
 
Registered: Aug 2003
Location: Brazil
Distribution: Suse 10
Posts: 8

Original Poster
Rep: Reputation: 0
Hi,
thank you very much for your answer. The "lease" time from my dhcpd.conf is 86400 (that is one day, right?). But is this time also valid if I use a static IP for the client? I ask because the network also dies when I tried to use a static IP. Should I increase the lease time?
My dhcpd.conf file is as follows:

ddns-update-style ad-hoc;
default-lease-time 86400;
max-lease-time 86400;
option routers 192.168.0.1;
option ip-forwarding off;
option broadcast-address 192.168.0.255;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.0.1;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.2 192.168.0.60;
}

Thank you very much.
 
Old 07-05-2004, 11:21 AM   #6
NetAX
Member
 
Registered: Mar 2004
Location: Boston, MA
Distribution: SuSE Linux Open/Enterprise, Red Hat, Ubuntu
Posts: 147

Rep: Reputation: 17
ya i think 86400 thats one day.

My default-lease-time is 600, and my max-lease-timeis 7200; basically it renews the IP every 10 minutes which is fine with me because i havent had any problems. Try using those and post again if it doesn't work again.


Static IP's are not the same They do not need to renew there IP since it is fixed and does not change over a period of time.
 
Old 07-05-2004, 01:41 PM   #7
virgos
LQ Newbie
 
Registered: Aug 2003
Location: Brazil
Distribution: Suse 10
Posts: 8

Original Poster
Rep: Reputation: 0
Hi,
thank you for your answer. I made the changes in my dhcpd.conf file. But I am not able to see if it works, since once my network dies I can re-establish it only in the next day... (very, very strange!).
But since the problem occurs with dhcp and also with static IP, I don't think the cause is the lease time. But I will test it tomorrow and I will post an answer.
Thank you again.
 
Old 07-07-2004, 08:32 AM   #8
virgos
LQ Newbie
 
Registered: Aug 2003
Location: Brazil
Distribution: Suse 10
Posts: 8

Original Poster
Rep: Reputation: 0
Hi,
the changes on the "lease times" didn't have any effect. On the other hand, I installed a pcmcia ethernet card on the client and now it works!! With the built-in network adapter the network still runs for only 25 minutes. With the pcmcia, it runs all day...
Although I don't know why, my problem is partially solved (although I would like to use my built-in network too).
Thanks again for all posts. And if anybody has a clue why the network runs without problems with the pcmcia, but only for 25 minutes with the built-in adapter, I would like to know.
Thank you.
 
Old 07-07-2004, 10:34 AM   #9
NetAX
Member
 
Registered: Mar 2004
Location: Boston, MA
Distribution: SuSE Linux Open/Enterprise, Red Hat, Ubuntu
Posts: 147

Rep: Reputation: 17
Have you checked the link light on the built-in ethernet card? If it is not on then maybe the problem is hardware related, either with the cable or the ethernet card.

A temporary solution is better than no solution.
 
  


Reply



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
Network dies almost immediately (FC3) tbthorpe Linux - Wireless Networking 3 09-23-2005 05:09 PM
nForce3 network dies after 30 seconds in mandrake 10 antken Linux - Networking 1 10-09-2004 07:53 PM
Network dies shortly after startup. Passive Linux - Wireless Networking 1 06-05-2004 02:19 PM
Network connection dies every 20 to 30 hours explorer Linux - Newbie 9 04-02-2003 11:39 AM
the network card auto shut-off after few minutes from power up pmeccanico Linux - Hardware 2 06-25-2002 01:42 AM

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

All times are GMT -5. The time now is 01:08 PM.

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
Open Source Consulting | Domain Registration