From owner-freebsd-jail@FreeBSD.ORG Fri Jul 23 10:02:20 2010 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB8801065673 for ; Fri, 23 Jul 2010 10:02:20 +0000 (UTC) (envelope-from gavroche@gavroche.pl) Received: from mail.mercom.pl (mail.mercom.pl [195.187.153.4]) by mx1.freebsd.org (Postfix) with ESMTP id A57448FC1A for ; Fri, 23 Jul 2010 10:02:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.mercom.pl (Postfix) with ESMTP id 6A53027884D for ; Fri, 23 Jul 2010 11:45:06 +0200 (CEST) X-Virus-Scanned: by amavisd-new using ClamAV at mail.mercom.pl Received: from mail.mercom.pl ([127.0.0.1]) by localhost (mail.mercom.pl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id kXsuQQuRzymz; Fri, 23 Jul 2010 11:45:03 +0200 (CEST) Received: by mail.mercom.pl (Postfix, from userid 1002) id 16665278847; Fri, 23 Jul 2010 11:45:03 +0200 (CEST) Date: Fri, 23 Jul 2010 11:45:03 +0200 From: Dominik Zyla To: freebsd-jail@freebsd.org Message-ID: <20100723094503.GA13833@mail.mercom.pl> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sdtB3X0nJg68CQEu" Content-Disposition: inline In-Reply-To: X-PGP-Key: http://pavulon.underground.pl/~gavroche/gav.asc User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: CARP across two jails on one host? X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jul 2010 10:02:21 -0000 --sdtB3X0nJg68CQEu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 22, 2010 at 12:51:23PM -0400, Aaron Weeden wrote: > My box is running FreeBSD version 8.1-PRERELEASE. I've created two > jails and want them to be able to share an IP address via CARP. As I > understand it, each host must use the same VHID and IP address on its > carp interface in order to work as a failover for the other hosts. > I'm also under the impression that jails cannot create interfaces, as > my attempt to run 'ifconfig carp0 create' within a jail returned the > error 'ifconfig: SIOCIFCREATE2: Operation not permitted'. I'm > wondering, then, if it's possible to use CARP for two jails on one > host, since attempting to create two carp interfaces with the same > vhid on the parent produces the error 'ifconfig: SIOCSVH: File > exists'. Does anyone here have experience running CARP in jails? You can't run both, MASTER and BACKUP carp instances on the same host. --=20 Dominik Zyla --sdtB3X0nJg68CQEu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkxJZJ8ACgkQYAyMP8U8kavahgCg5htzcXXciDtroPOV1KOiU556 Gt4An1rdu5tiLJuVyw0J5Ryu4IhXcwnm =kmCg -----END PGP SIGNATURE----- --sdtB3X0nJg68CQEu--