From owner-freebsd-net@FreeBSD.ORG Fri Oct 14 19:06:58 2011 Return-Path: Delivered-To: net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 536971065674 for ; Fri, 14 Oct 2011 19:06:58 +0000 (UTC) (envelope-from andre@freebsd.org) Received: from c00l3r.networx.ch (c00l3r.networx.ch [62.48.2.2]) by mx1.freebsd.org (Postfix) with ESMTP id A01698FC14 for ; Fri, 14 Oct 2011 19:06:57 +0000 (UTC) Received: (qmail 62127 invoked from network); 14 Oct 2011 17:47:48 -0000 Received: from localhost (HELO [127.0.0.1]) ([127.0.0.1]) (envelope-sender ) by c00l3r.networx.ch (qmail-ldap-1.03) with SMTP for ; 14 Oct 2011 17:47:48 -0000 Message-ID: <4E988851.3040801@freebsd.org> Date: Fri, 14 Oct 2011 21:06:57 +0200 From: Andre Oppermann User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: Gleb Smirnoff References: <20110810160526.GO43567@FreeBSD.org> <20111013160216.GU94905@glebius.int.ru> <4E9874C5.8070309@freebsd.org> <20111014180205.GG94905@glebius.int.ru> <4E987C0A.2040600@freebsd.org> <20111014184843.GI94905@glebius.int.ru> In-Reply-To: <20111014184843.GI94905@glebius.int.ru> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: net@FreeBSD.org Subject: Re: new CARP implementation 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: Fri, 14 Oct 2011 19:06:58 -0000 On 14.10.2011 20:48, Gleb Smirnoff wrote: > On Fri, Oct 14, 2011 at 08:14:34PM +0200, Andre Oppermann wrote: > A> On 14.10.2011 20:02, Gleb Smirnoff wrote: > A> > On Fri, Oct 14, 2011 at 07:43:33PM +0200, Andre Oppermann wrote: > A> > A> On 13.10.2011 18:02, Gleb Smirnoff wrote: > A> > A> > Hello networkers, > A> > A> > > A> > A> > I've updated patch& README here: > A> > A> > > A> > A> > http://people.freebsd.org/~glebius/newcarp/ > A> > A> > > A> > A> > Going to commit it to head/ soon. Then I'd like to make > A> > A> > a run through carp-related PRs, update documentation, settle > A> > A> > things a bit... and then make more hacking to restore the > A> > A> > arpbalance feature, as well as bring in ipbalance feature. > A> > A> > A> > A> Excellent! Great work. Looks good. > A> > A> > A> > A> One minor nit: Carp is directly enabled by specifying the vhid. > A> > A> Would it be possible to introduce the keyword "carp" and "-carp" > A> > A> to actually enable/disable an interface for carp? > A> > > A> > We could add additional interface flag, but I don't see point in > A> > enabling/disabling CARP per-interface. > A> > A> Suspending the interface from the group, but retaining the configuration > A> could be one reason. > > Won't ifconfig it down work? Not if I want to continue to use the primary or other non-carp address. > A> > btw, you can configure a VHID and don't attach any addresses > A> > to it. > A> > A> How does that work? What purpose does it serve? > > This is actually how it is configured: SIOCSVH, then SIOCAIFADDR. > There is no practical use in addressless vhid now. If it can cause problems or non-standard behavior it should not be allowed and the carp status should be suspended until fully configured. One more question: Can one interface with multiple addresses become a member of different carp groups (with a different address each)? -- Andre