From owner-freebsd-net@FreeBSD.ORG Fri Oct 14 19:12:48 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 654A7106564A; Fri, 14 Oct 2011 19:12:48 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.64.117]) by mx1.freebsd.org (Postfix) with ESMTP id C76E78FC1B; Fri, 14 Oct 2011 19:12:47 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.4/8.14.4) with ESMTP id p9EJCkDS045693; Fri, 14 Oct 2011 23:12:46 +0400 (MSD) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.4/8.14.4/Submit) id p9EJCjjI045692; Fri, 14 Oct 2011 23:12:46 +0400 (MSD) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Fri, 14 Oct 2011 23:12:45 +0400 From: Gleb Smirnoff To: Andre Oppermann Message-ID: <20111014191245.GL94905@glebius.int.ru> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <4E988851.3040801@freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) 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:12:48 -0000 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. 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. -- Totus tuus, Glebius.