From owner-freebsd-current@FreeBSD.ORG Tue Apr 2 08:52:25 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 8B755593 for ; Tue, 2 Apr 2013 08:52:25 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.69.10]) by mx1.freebsd.org (Postfix) with ESMTP id 1A807C2 for ; Tue, 2 Apr 2013 08:52:24 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.6/8.14.6) with ESMTP id r328qNhI080347; Tue, 2 Apr 2013 12:52:23 +0400 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.6/8.14.6/Submit) id r328qNFZ080346; Tue, 2 Apr 2013 12:52:23 +0400 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Tue, 2 Apr 2013 12:52:22 +0400 From: Gleb Smirnoff To: Freddie Cash Subject: Re: Anyone have scripts for managing interfaces under new CARP setup? Message-ID: <20130402085222.GH76816@FreeBSD.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: FreeBSD-Current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Apr 2013 08:52:25 -0000 Freddie, On Wed, Mar 27, 2013 at 04:10:03PM -0700, Freddie Cash wrote: F> Just curious if anyone has any scripts for managing fail-over of multiple F> interfaces using the new CARP setup in 10-CURRENT. F> F> Fail-over of all CARP vhids associated with a single interface is working F> correctly. But, I have 2 separate, physical interfaces running with CARP, F> and want to fail-over everything if one of the links (or boxes) goes down. F> F> Figured I'd ask around to see if anyone has done something like this F> already. I've been playing with devd.conf settings and logging events, but F> don't have anything written up to do the actual switch yet. Same as for old CARP, you can achieve behavior when a box with lower advskew yields master status to a second one, setting: sysctl net.inet.carp.preempt=1 If an interface on the master has proper link state notification to the kernel, then once the interface goes down, the advskew on the box will be demoted and backup box will preempt it. -- Totus tuus, Glebius.