From owner-freebsd-net@FreeBSD.ORG Tue Aug 28 09:45:42 2007 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4140F16A418 for ; Tue, 28 Aug 2007 09:45:42 +0000 (UTC) (envelope-from gergely.czuczy@harmless.hu) Received: from marvin.harmless.hu (marvin.harmless.hu [195.56.55.204]) by mx1.freebsd.org (Postfix) with ESMTP id F2D5113C468 for ; Tue, 28 Aug 2007 09:45:41 +0000 (UTC) (envelope-from gergely.czuczy@harmless.hu) Received: from localhost (marvin-mail [192.168.0.2]) by marvin.harmless.hu (Postfix) with ESMTP id 136667C0AF5; Tue, 28 Aug 2007 11:45:41 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.4.2 (20060627) (Debian) at harmless.hu Received: from marvin.harmless.hu ([192.168.0.2]) by localhost (marvin.harmless.hu [192.168.0.2]) (amavisd-new, port 10024) with ESMTP id ohNYKgD-Lsef; Tue, 28 Aug 2007 11:45:40 +0200 (CEST) Received: from marvin.harmless.hu (localhost [127.0.0.1]) by marvin.harmless.hu (Postfix) with ESMTP id A83487C0AF4; Tue, 28 Aug 2007 11:45:40 +0200 (CEST) Date: Tue, 28 Aug 2007 11:45:40 +0200 From: Gergely CZUCZY To: Daniel Hartmeier Message-ID: <20070828094540.GA20242@harmless.hu> References: <20070828092931.GA18240@harmless.hu> <20070828094429.GF18273@insomnia.benzedrine.cx> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=x-unknown; protocol="application/pgp-signature"; boundary="WIyZ46R2i8wDzkSu" Content-Disposition: inline In-Reply-To: <20070828094429.GF18273@insomnia.benzedrine.cx> User-Agent: mutt-ng/devel-r804 (FreeBSD) Cc: freebsd-net@freebsd.org Subject: Re: carp on multiple interfaces 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: Tue, 28 Aug 2007 09:45:42 -0000 --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Thanks for the answers. I must have missed that part of carp(4). On Tue, Aug 28, 2007 at 11:44:29AM +0200, Daniel Hartmeier wrote: > On Tue, Aug 28, 2007 at 11:29:31AM +0200, Gergely CZUCZY wrote: >=20 > > On a dual-carp scenario on two gateways when both the internal and > > the external IFs are carp(4)'d in a master-slave way and a link > > disconnects only on one side, would this trigger a carp failover > > of the other interface also? >=20 > See carp(4) >=20 > net.inet.carp.preempt Allow virtual hosts to preempt each other. = It > is also used to failover carp interfaces as a > group. When the option is enabled and one of > the carp enabled physical interfaces goes do= wn, > advskew is changed to 240 on all carp inter- > faces. See also the first example. Disabled > by default. >=20 > i.e. for your scenario you'd set preempt=3D1 so all interfaces failover > together, to avoid the problem you describe (which otherwise would > occur, yes). >=20 > Daniel Sincerely, Gergely Czuczy mailto: gergely.czuczy@harmless.hu --=20 Weenies test. Geniuses solve problems that arise. --WIyZ46R2i8wDzkSu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) owGFVL+P1EYUPkAIyYDE8Q/kKU1At3a8vr0cLFrIccePKxAFh1BINTt+tkc3njEz 4zV7RSS6FCmiSAkFEqKBDgWkKE3aRBENDRIFfwRS/oO8seXlmmQty5LfvPne971f P54+tnJ09e2r375d++GnJ0deHn86XStr51QelszMhAqHcTwMkzgZJeEoTNaR82m8 sbkxjNPR5lfX3338c1srh8qFe/MKx+DwofuykkyoS8ALZiy6Se2y8ELQ++0IW2kr nNBqDEJJoXBxtmeYshma8JriOhUqH8ODWjtMw8oI5dhUYhDsFUztW8i0AVcg0I0G jY1gF8raOijYDKEU1mJK58xBxYwDnQFnpjo3Oh8FwW0FezUOYKvOIbkwgCSON4E8 h8PxaDROLm7dgrWYjAPYYUqghJsEUaJAA40hOuPgMvwPRnJxvD78hHEDTY5yDtv3 727f/2aBMEligmmBGKQ1k6EnCJajYkZo0ApcoyFnDhs2t9AUqGCqXdGqpmygUUyS /LSF8UbKfWfcvW6BGewlf5GSP0UpmSWH0EqfIgL1l8lMJdhvMVJhuVYKubMUnigT B60QrEhJaaNr6VMqLDgj8pyywdoIkDEh9QxNC0KZ9lyIKDm0NDPGqUzS6iu96ju4 4Nab6FHoIuE//iiqDGJZOX8AW1LqBmbCOMoTFNoSQaehd0HGiy5gBDAJdl2H998P SfB8oG6bRC8EdHIWpMmL3mVgudF1RYHv+QK10ivf3D4IlZJaNm3z7BOps2Vg/n5L or9aFXMrOKk+xCrX9En1JGjUYBkgS2d2HxvPhuZR5Z3gZBT74jIpD0kOl2G10Ump L1+bP882E4amDh+yspJIhzTfLfNlYNM5pJixWrqo7wEREYCf67muzadJoD/qYNok fcEn6ztDoPCe/qG0HGpDp3P0/TDwYtlMi7TlWhlN1EqPSMEtN2KKcK4pRN8/jbDY NTqBaM5rQpijPb+g2C2EILgjFEdDYz0IgsWAH9T8YB6URMPpMeSdOeKt+WtahqVE a6OiDoIw9HD3EAmNWhmti2hPKEENaUmZnC242m6JUSIsRsH3V44dX/Fbt1/Zq0cf n1159uvw0dp3zx+/eHfwx/vilzO/7/516vOVJyf+vrq9+kG/+fnkxuXPXt8+natb //wL =a79L -----END PGP SIGNATURE----- --WIyZ46R2i8wDzkSu--