From owner-freebsd-net@FreeBSD.ORG Wed Jul 20 14:39:03 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 1458C1065670 for ; Wed, 20 Jul 2011 14:39:03 +0000 (UTC) (envelope-from patfbsd@davenulle.org) Received: from smtp.lamaiziere.net (net.lamaiziere.net [91.121.44.19]) by mx1.freebsd.org (Postfix) with ESMTP id C78028FC18 for ; Wed, 20 Jul 2011 14:39:02 +0000 (UTC) Received: from mr12941.univ-rennes1.fr (mr129041.cri.univ-rennes1.fr [129.20.129.41]) by smtp.lamaiziere.net (Postfix) with ESMTPA id 49D1163307B; Wed, 20 Jul 2011 16:19:25 +0200 (CEST) Received: from mr12941 (localhost.localdomain [127.0.0.1]) by mr12941.univ-rennes1.fr (Postfix) with ESMTP id B815D7A0108; Wed, 20 Jul 2011 16:19:24 +0200 (CEST) Date: Wed, 20 Jul 2011 16:19:24 +0200 From: Patrick Lamaiziere To: "Kim A. Brandt" Message-ID: <20110720161924.26a4fcf0@mr12941> In-Reply-To: <4E244EDD.2000709@peterhost.ru> References: <4E243D8F.1020305@gmx.de> <4E244EDD.2000709@peterhost.ru> X-Mailer: Claws Mail 3.7.8 (GTK+ 2.24.4; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 14:39:03 -0000 Le Mon, 18 Jul 2011 19:18:53 +0400, Dmitry Banschikov a écrit : Hi, > > 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. In addition, port net/ifstated could be useful for doing this kind of things (here we monitor BGP sessions with it).