Date: Fri, 28 Jan 2000 22:25:23 -0500 From: Scott Gregory <bsdbox@citizen.infi.net> To: keramida@ceid.upatras.gr Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Detecting loss of Network Connection Message-ID: <38925DA3.A15BC6F9@citizen.infi.net> References: <389103E4.78D1E910@citizen.infi.net> <20000129035709.A18572@hades.hell.gr>
next in thread | previous in thread | raw e-mail | index | archive | help
Thanks for your reply. I am not trying to fix a current problem....I am trying to stop a fuure problem. Let me explain.... I am creating a firewall box (2 boxes actually) that will be connected to 2 different switches on both the Inet side and the internal side (4 NIC's). The two switches on the Inet side each have a connection to the Inet, one main connection and one backup. The switches will be connected. This should eliminate any single point of failures from the inet or a dead switch. The internal side has the same configuration....2 switches with the firewall(s) connected to both. I need to be able to actively monitor the "primary" NIC. If the link goes down for any reason (NIC dies, cable fries, switch dies, etc) I need to reconfigure the "backup" NIC to answer for the required IP. For this reason, I need something that will monitor the links and is fairly easy on the resources. Thanks, Scott Giorgos Keramidas wrote: > > On Thu, Jan 27, 2000 at 09:50:12PM -0500, Scott Gregory wrote: > > To All, > > > > Are there any tools or utilities that I can use to detect when a network > > connection has been lost? > > Do you mean like when an interface (tun? or ppp?) goes down? Since I'm > not using user ppp anymore, I wrote a simple shell script that I call > from my /etc/crontab to do this kind of stuff. The heart of it contains: > > ifconfig -au | grep ppp0 >/dev/null || { > # the interface just went that way > pppd call ISP > } > > > Has anyone already created a tool that will do this? This solution > > would have to be light on system resources since it would need to run > > every couple seconds (at a maximum). > > Nah, running it so many times will probably make it a cpu hog. Try to > fix the problem even deeper, where it's root may be hidden. > > -- > Giorgos Keramidas, < keramida @ ceid . upatras . gr > > "Don't let your schooling interfere with your education." [Mark Twain] > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38925DA3.A15BC6F9>