From owner-freebsd-questions Fri Jan 28 19:25:34 2000 Delivered-To: freebsd-questions@freebsd.org Received: from fh106.infi.net (fh106.infi.net [209.97.16.33]) by hub.freebsd.org (Postfix) with ESMTP id 5BDCF14E19 for ; Fri, 28 Jan 2000 19:25:31 -0800 (PST) (envelope-from bsdbox@citizen.infi.net) Received: from citizen.infi.net (pm2-107.w66.infi.net [208.130.33.107]) by fh106.infi.net (8.8.8/8.8.8) with ESMTP id WAA25763; Fri, 28 Jan 2000 22:25:23 -0500 (EST) Message-ID: <38925DA3.A15BC6F9@citizen.infi.net> Date: Fri, 28 Jan 2000 22:25:23 -0500 From: Scott Gregory X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: keramida@ceid.upatras.gr Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Detecting loss of Network Connection References: <389103E4.78D1E910@citizen.infi.net> <20000129035709.A18572@hades.hell.gr> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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