Networking Forums

Networking Forums > Computer Networking > Linux Networking > any way to avoid network to be deactivated after a period of inactivity ?

Reply
Thread Tools Display Modes

any way to avoid network to be deactivated after a period of inactivity ?

 
 
vincent delvaux
Guest
Posts: n/a

 
      05-18-2004, 12:21 PM
Hello,

here is something I don't understand. I've this network up and running at
home with a linux red hat 9.0 and a windows 98 pc. The linux is used as a
gateway with an adsl connection and then forward the traffic to the Windows
pc through eth0.
Everything works fine regarding NAT, but after 5-10 min. of inactivity on
the linux box, the eth0 interface goes down, as well as thee local loop
(the ppp connection stays up though). I then have to restart the network
and the iptables rules in order to have the internet connection available
on my windows pc.
Is there anyway to avoid this and make the network interfaces permanently
up and running, as well as the routing table and the iptables rules ?
Am I missing something here ? (sorry, but i'm kinda new to this :-( )
TIA

Vincent
 
Reply With Quote
 
 
 
 
Robert W.
Guest
Posts: n/a

 
      05-18-2004, 06:47 PM
On Die, 18 Mai 2004 at 12:21 GMT, vincent delvaux <(E-Mail Removed)> wrote:
> Hello,
>
> here is something I don't understand. I've this network up and running at
> home with a linux red hat 9.0 and a windows 98 pc. The linux is used as a
> gateway with an adsl connection and then forward the traffic to the Windows
> pc through eth0.
> Everything works fine regarding NAT, but after 5-10 min. of inactivity on
> the linux box, the eth0 interface goes down, as well as thee local loop
> (the ppp connection stays up though). I then have to restart the network
> and the iptables rules in order to have the internet connection available
> on my windows pc.
> Is there anyway to avoid this and make the network interfaces permanently
> up and running, as well as the routing table and the iptables rules ?
> Am I missing something here ? (sorry, but i'm kinda new to this :-( )
> TIA
>
> Vincent


I know this problem. I've found apmd to be the reason. Why the solution
I've found works for me, is not really clear to me. So don't ask me.
But I set in /etc/sysconfig/apmd the following line:
NET_RESTART="no"
After the description provided by the file, a setting to yes this
Variable is to avoid the scenario you describe. But exactly the opposite
happens, it seems to be the reason.
If anyone could explain this behaviour, I'd be interested in reading.

--

Robert...

 
Reply With Quote
 
vincent delvaux
Guest
Posts: n/a

 
      05-19-2004, 08:15 AM
"Robert W." <(E-Mail Removed)> wrote in
news:c8dlo3$v9v$01$(E-Mail Removed):

> On Die, 18 Mai 2004 at 12:21 GMT, vincent delvaux
> <(E-Mail Removed)> wrote:



> If anyone could explain this behaviour, I'd be interested in reading.
>


That's interresting. I search the doc in vain for an answer to this problem
but I'll definitly keep on looking. Thanks a lot for the clue anyway :-)
 
Reply With Quote
 
Clifford Kite
Guest
Posts: n/a

 
      05-19-2004, 12:43 PM
vincent delvaux <(E-Mail Removed)> wrote:

> here is something I don't understand. I've this network up and running at
> home with a linux red hat 9.0 and a windows 98 pc. The linux is used as a
> gateway with an adsl connection and then forward the traffic to the Windows
> pc through eth0.
> Everything works fine regarding NAT, but after 5-10 min. of inactivity on
> the linux box, the eth0 interface goes down, as well as thee local loop
> (the ppp connection stays up though). I then have to restart the network
> and the iptables rules in order to have the internet connection available
> on my windows pc.


This *sounds* like crontab (man crontab) might be used to remove inactive
networking modules. I've never done this, but from Documentation/kmod.txt
in the kernel source tree,

To periodically unload unused modules, put something like the following
in root's crontab entry:

0-59/5 * * * * /sbin/rmmod -a

> Is there anyway to avoid this and make the network interfaces permanently
> up and running, as well as the routing table and the iptables rules ?
> Am I missing something here ? (sorry, but i'm kinda new to this :-( )


It will very likely be an item that's configured via a RH script, but I
don't run RH.

--
Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
PPP-Q&A links, downloads: http://ckite.no-ip.net/
/* Speak softly and carry a sucker rod (See man syslogd, footnote to
recommendation 4 under SECURITY THREATS). */
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wireless inactivity - what to look for Alpha Wireless Networks 7 10-08-2008 08:59 AM
Home Network What To Avoid Rick Wireless Networks 3 01-26-2006 06:19 PM
Avoid user answer 'NO' where or not to reconnect to the network dr =?Utf-8?B?YW5keQ==?= Windows Networking 2 03-17-2005 03:23 PM
Shares shut down after inactivity Otterhound Windows Networking 0 06-07-2004 03:21 PM
Loss of Internet connection after period of inactivity Barb Windows Networking 0 10-27-2003 06:09 PM



1 2 3 4 5 6 7 8 9 10 11