From owner-freebsd-jail@FreeBSD.ORG Thu Jul 22 17:21:26 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 241D7106566C for ; Thu, 22 Jul 2010 17:21:26 +0000 (UTC) (envelope-from amweeden.earlham@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id B27B48FC08 for ; Thu, 22 Jul 2010 17:21:25 +0000 (UTC) Received: by wwe15 with SMTP id 15so3317473wwe.31 for ; Thu, 22 Jul 2010 10:21:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=6iupEoP1oJR1Qn8DOr/BXz6vbg/Ma900VInGeaa+umc=; b=ChsSIy3pyBIS2kUWA73EXbbcH39bxHKKfTnpanVHdzGPt7Nmsi8TgWZbXLutCxmJTN kemH+u3PacrMcDhk0rBJg7v5RsKUAw+uyb7HvYIySUujgYyoH/H4ReEWH4GPEd4tACMM uLR5pkTqlSzESGYgw0wLDUNls3KYEElOpxEOs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=BiTlrTzdJViwccTIt7AKyWSnk3Jc35LSHtblpvnMQnt3PpXlaKp07lzOh8F2QIazm5 HdTV9MvSHPMvjnvh2v/Mnk6/1/cwUKl/rIyFo4qwWILY2/Xq6mYc6am+0FYM2IeRShsh AdvwBofNONxR1B7a21LMq/xZWA1+5ig/6TkZc= MIME-Version: 1.0 Received: by 10.216.30.207 with SMTP id k57mr2125844wea.88.1279817484130; Thu, 22 Jul 2010 09:51:24 -0700 (PDT) Received: by 10.216.136.38 with HTTP; Thu, 22 Jul 2010 09:51:23 -0700 (PDT) Date: Thu, 22 Jul 2010 12:51:23 -0400 Message-ID: From: Aaron Weeden To: freebsd-jail@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: 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: Thu, 22 Jul 2010 17:21:26 -0000 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? Thank you, Aaron Weeden