From owner-freebsd-net@FreeBSD.ORG Tue Aug 28 09:44:31 2007 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 09EDF16A420 for ; Tue, 28 Aug 2007 09:44:31 +0000 (UTC) (envelope-from dhartmei@insomnia.benzedrine.cx) Received: from insomnia.benzedrine.cx (insomnia.benzedrine.cx [IPv6:2001:6f8:1098::2]) by mx1.freebsd.org (Postfix) with ESMTP id A3AC013C461 for ; Tue, 28 Aug 2007 09:44:30 +0000 (UTC) (envelope-from dhartmei@insomnia.benzedrine.cx) Received: from insomnia.benzedrine.cx (dhartmei@localhost.benzedrine.cx [127.0.0.1]) by insomnia.benzedrine.cx (8.14.1/8.13.4) with ESMTP id l7S9iUaS012534 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Tue, 28 Aug 2007 11:44:30 +0200 (MEST) Received: (from dhartmei@localhost) by insomnia.benzedrine.cx (8.14.1/8.12.10/Submit) id l7S9iTo6030641; Tue, 28 Aug 2007 11:44:29 +0200 (MEST) Date: Tue, 28 Aug 2007 11:44:29 +0200 From: Daniel Hartmeier To: Gergely CZUCZY Message-ID: <20070828094429.GF18273@insomnia.benzedrine.cx> References: <20070828092931.GA18240@harmless.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070828092931.GA18240@harmless.hu> User-Agent: Mutt/1.5.12-2006-07-14 Cc: freebsd-net@freebsd.org Subject: Re: carp on multiple interfaces 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: Tue, 28 Aug 2007 09:44:31 -0000 On Tue, Aug 28, 2007 at 11:29:31AM +0200, Gergely CZUCZY wrote: > On a dual-carp scenario on two gateways when both the internal and > the external IFs are carp(4)'d in a master-slave way and a link > disconnects only on one side, would this trigger a carp failover > of the other interface also? See carp(4) net.inet.carp.preempt Allow virtual hosts to preempt each other. It is also used to failover carp interfaces as a group. When the option is enabled and one of the carp enabled physical interfaces goes down, advskew is changed to 240 on all carp inter- faces. See also the first example. Disabled by default. i.e. for your scenario you'd set preempt=1 so all interfaces failover together, to avoid the problem you describe (which otherwise would occur, yes). Daniel