From owner-freebsd-net@FreeBSD.ORG Sat Oct 15 08:15:17 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 273851065672 for ; Sat, 15 Oct 2011 08:15:17 +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 8DE7A8FC12 for ; Sat, 15 Oct 2011 08:15:16 +0000 (UTC) Received: (qmail 64098 invoked from network); 15 Oct 2011 06:56:00 -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 ; 15 Oct 2011 06:56:00 -0000 Message-ID: <4E994114.3050403@freebsd.org> Date: Sat, 15 Oct 2011 10:15:16 +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> <4E988851.3040801@freebsd.org> <20111014191245.GL94905@glebius.int.ru> In-Reply-To: <20111014191245.GL94905@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: Sat, 15 Oct 2011 08:15:17 -0000 On 14.10.2011 21:12, Gleb Smirnoff wrote: > On Fri, Oct 14, 2011 at 09:06:57PM +0200, Andre Oppermann wrote: > A> > Won't ifconfig it down work? > A> > A> Not if I want to continue to use the primary or other non-carp address. > > Well, the best idea for that case would be switch them to backup mode. > In presense of active master, they won't show up any way either on wire, > neither in the stack. Though you run the risk of getting a lot of traffic when the master fails while working on the backup. At the moment one can simply down the carp interface and be in the clear. Anyway, this enable/disable can be added later again if reality shows it to be necessary. > A> > A> > btw, you can configure a VHID and don't attach any addresses > A> > A> > to it. > A> > A> > A> > A> How does that work? What purpose does it serve? > A> > > A> > This is actually how it is configured: SIOCSVH, then SIOCAIFADDR. > A> > There is no practical use in addressless vhid now. > A> > A> If it can cause problems or non-standard behavior it should not be > A> allowed and the carp status should be suspended until fully configured. > > Status of such addressless vhid is always INIT, so it causes no activity > either on wire or in stack :) > > A> One more question: Can one interface with multiple addresses become a > A> member of different carp groups (with a different address each)? > > Sure. All imaginable options are configurable: arbitrary number of > addresses on interface, arbitrary number of vhids on interface, > arbitrary number of addresses configured to a particular vhid. Excellent. And much simpler to use as well. -- Andre