On Sat, 12 Feb, 2005 at 18:00:05 -0500, Gene Smith wrote:
I am running a bering-leaf system with 2.4.18 kernel that I setup about two years ago (not sure of exact version). It has been working fine except for one problem. When the cable goes down and eventually comes back up the bering-leaf system never recovers (clients can't access internet). I tried restarting services (shorewall, networking, ifup/down) to no avail. Usually I just reboot. However I discovered that if I kill and re-run pump (/sbin/pump -i eth1) it then recovers and acquires its IP address. Could I have something configured wrong that prevents a automatic recovery?
I have been having similar (if not identical) problems lately: Link goes down, lease expires, link comes up again, pump fails to renew.
AFAICT there's a bug which makes pump exit, when no dhcp-server can be reached after N retries. I'm not absolutely sure this is what actually happens, but some googling turned up links to that effect. (Sorry I can't reproduce the search ATM)
Working on the *assumption* that pump indeed dies, I threw this together:
# cat /sbin/repump #!/bin/sh if [ -z "`/sbin/pidof pump`" ] ;then /usr/bin/logger "Repump: pump looks dead, attempting resurrection;" /sbin/pump #else # /usr/bin/logger "Repump: pump lives, pid `pidof pump`" fi
and added:
# keeping pump alive: */10 * * * * root /sbin/repump
to /etc/crontab.
Basically a crude workaround.
(Un)fortunately the ISP seems to have gotten their act together, at about the same time as I did the above. Hence I don't know whether or not it works as desired... :P
HTH /Jon
When I couldn't acquire a ip address the other day pump was still running. However, it was a bit of a unnatural situation. I had moved the ethernet cable to the cable modem from the leaf box over to a PC to test out another problem I was having so I could be connected directly to the internet w/o a physical firewall. When I was done and put the ethernet from the modem back to the still running leaf box the leaf box had lost its ip address (none was listed on the network setting on the web page). When, after restarting other inet related services, I killed pump and restarted it and then I could see a ip address on the web page and only then clients could connect to the internet through leaf.
Typically when the isp goes down I am not on site and receive a call. Since I am unable to check what exactly is happening on the leaf box I suggest a reboot. So I am kind of assuming that my cable swapping described above simulates the isp being down, but not sure.
-gene
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ------------------------------------------------------------------------ leaf-user mailing list: [email protected] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
