From owner-freebsd-net@FreeBSD.ORG Wed Jul 20 15:37:01 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C4E6F106566C for ; Wed, 20 Jul 2011 15:37:01 +0000 (UTC) (envelope-from kimabrandt@gmx.de) Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by mx1.freebsd.org (Postfix) with SMTP id 496498FC08 for ; Wed, 20 Jul 2011 15:37:01 +0000 (UTC) Received: (qmail invoked by alias); 20 Jul 2011 15:36:59 -0000 Received: from x1-6-c4-3d-c7-27-b9-1a.k6.webspeed.dk (EHLO [172.16.0.110]) [80.63.18.226] by mail.gmx.net (mp070) with SMTP; 20 Jul 2011 17:36:59 +0200 X-Authenticated: #32880209 X-Provags-ID: V01U2FsdGVkX1965FMX9vx6MCKRXMP9FAxdt9m6KKvd+dn4zDCfd8 zdBrEXUzPivcpD Message-ID: <4E26F617.1030405@gmx.de> Date: Wed, 20 Jul 2011 17:36:55 +0200 From: "Kim A. Brandt" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110617 Thunderbird/3.1.11 MIME-Version: 1.0 To: Patrick Lamaiziere References: <4E243D8F.1020305@gmx.de> <4E244EDD.2000709@peterhost.ru> <20110720161924.26a4fcf0@mr12941> In-Reply-To: <20110720161924.26a4fcf0@mr12941> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="------------ms060608060902060801030209" X-Y-GMX-Trusted: 0 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org Subject: Re: CARP-interface fail-over in case required program fails. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jul 2011 15:37:01 -0000 This is a cryptographically signed message in MIME format. --------------ms060608060902060801030209 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks Patrick and Dmitry, indeed `ifstated' and the ``running external tests''-part, sound like it = will be helpful. /Kim On 2011-07-20 16:19, Patrick Lamaiziere wrote: > Le Mon, 18 Jul 2011 19:18:53 +0400, > Dmitry Banschikov a =C3=A9crit : >=20 > Hi, >=20 >>> is it possible to let a CARP-interface fail(-over) in the situation >>> when a certain program fails or stops working? I hope it's clear >>> enough what I have in mind. Could you give me any pointers on how >>> this can be archived? >> >> You can write simple script, which will monitor status of the >> program, and if program fails, it can adjust advskew parameter of the >> CARP interface forcing going interface to the backup state. >=20 > In addition, port net/ifstated could be useful for doing this kind of > things (here we monitor BGP sessions with it). --------------ms060608060902060801030209--