From owner-freebsd-current@FreeBSD.ORG Tue Apr 2 22:37:07 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 03891A52; Tue, 2 Apr 2013 22:37:07 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-qc0-x235.google.com (mail-qc0-x235.google.com [IPv6:2607:f8b0:400d:c01::235]) by mx1.freebsd.org (Postfix) with ESMTP id AD35EFC5; Tue, 2 Apr 2013 22:37:06 +0000 (UTC) Received: by mail-qc0-f181.google.com with SMTP id a22so422123qcs.40 for ; Tue, 02 Apr 2013 15:37:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=vV36/0FlHpInnR0xUBcGDtaI1DV3SntgUp9SrlrXjOg=; b=ZGMqzsMVpy8LWEI0ZmsxqJg8KdtCtloZW070DFVZVdbYKYqNO7Ynd8oTlBRAFVTEuJ SMWu9iF6d9qvs9M1MsoQvHKiBeXk3gDfxPKUEwFGtbVNnbKLPqJxD4SL2d4PD90pyK0t 5guYLeRtcOxAiz16oaHJePw8cfGHLohhtoyKtpRGDed8IN9x3ZYZrDvbs2huHMEO/8ps vOruv6P8/1a9Np2wt6aCO39uiRAmbdIThI1vn76gEty2tW6ReOyQf1n4tvCiyz4TY1aG tgXkQl5Tzx19T8KlBjZzwSPBiqU1kottDg/ikZBfVYrxVdtwxlHCieJHuO65xF5pUTi4 jzVQ== MIME-Version: 1.0 X-Received: by 10.229.166.140 with SMTP id m12mr6899600qcy.81.1364942225657; Tue, 02 Apr 2013 15:37:05 -0700 (PDT) Received: by 10.49.50.67 with HTTP; Tue, 2 Apr 2013 15:37:05 -0700 (PDT) Received: by 10.49.50.67 with HTTP; Tue, 2 Apr 2013 15:37:05 -0700 (PDT) In-Reply-To: <20130402085222.GH76816@FreeBSD.org> References: <20130402085222.GH76816@FreeBSD.org> Date: Tue, 2 Apr 2013 15:37:05 -0700 Message-ID: Subject: Re: Anyone have scripts for managing interfaces under new CARP setup? From: Freddie Cash To: Gleb Smirnoff Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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 22:37:07 -0000 On 2013-04-02 1:52 AM, "Gleb Smirnoff" wrote: > > 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. That's how I have things set and it wasn't switching the 2nd interface. However, I think that may be due to the IPFW rules on one interface blocking CARP multicast packets on that interface, while they were going through correctly on the 2nd interface. I'll see if I can schedule a manual test later this week now that IPFW is configured correctly. Thanks for the confirmation of things are supposed to work.