From owner-freebsd-questions@FreeBSD.ORG Thu Nov 29 18:53:12 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 56061734 for ; Thu, 29 Nov 2012 18:53:12 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id BBD398FC19 for ; Thu, 29 Nov 2012 18:53:10 +0000 (UTC) Received: by mail-we0-f182.google.com with SMTP id u54so6645306wey.13 for ; Thu, 29 Nov 2012 10:53:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=57Tml6YQFmQ0f46PahyJ7mko46pFrWC+GWHvjyEeDPM=; b=kCF1F4GVWfcMl12roHLKrV9gELmuVIGFOy7REC9fdNCV0jDQgcnYF9MEEgmUCovpV1 kTwZT1Jom9RUK/PY3bn1C+GUGKN4PQe3jdVwOLNxeJT8IwUlzXeYEm2p29twFI9T0fK9 4QgrYMsKzgiBaiBIiN7cvQTad1t1hFz28U8a+OIKXHvwSFm8gUYDbHnTkL53lX93TfQL 22YhsQaHjphJysu336HLoSMOZgX+S1jMom32/tmcDpyjIJ/iVbHFEq865f5MaQzvV1rP n5jc8fD3g2xXfqRNzBfSZfkQRDGTLCtooBqgrYaicN95G1b04EAgRJvqm1dtTaZE0z4y dTDw== Received: by 10.180.88.138 with SMTP id bg10mr36847612wib.13.1354215190186; Thu, 29 Nov 2012 10:53:10 -0800 (PST) Received: from dfleuriot-at-hi-media.com ([83.167.62.196]) by mx.google.com with ESMTPS id gz3sm12273364wib.2.2012.11.29.10.53.08 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 29 Nov 2012 10:53:09 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: CARP within VirtualBox Does it work? From: Fleuriot Damien In-Reply-To: <737f4b1c8bff13850af119f917ed811c@dweimer.net> Date: Thu, 29 Nov 2012 19:53:07 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <9232DDFC-F40B-4914-A92D-3B5D9C1ECE5F@my.gd> References: <737f4b1c8bff13850af119f917ed811c@dweimer.net> To: dweimer@dweimer.net X-Mailer: Apple Mail (2.1499) X-Gm-Message-State: ALoCoQmQtvzXedcrlokK8EPjENFzkrAb3mVNL1Fh0WMYOZGxDT4qP3/n3SHqWwVDZSehv8sFMTeH Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Nov 2012 18:53:12 -0000 On Nov 29, 2012, at 6:43 PM, dweimer wrote: > I was trying to setup a test of CARP on two virtual machines running = in VirtualBox 4.2.4r81684 I am not sure if I have something wrong with = my CARP configuration or if VirtualBox just doesn't work right with it. = I can only ping the CARP interface IP address from the machine listed as = MASTER, if I do an ifconfig carp0 down on the MASTER the other machine = correctly switches form BACKUP to MASTER and then I can ping the = interface from it but not from the Original system. >=20 > The VirtualBox systems are both using bridged networking, and the host = cannot ping the carp0 IP address but can ping the interface IP address. >=20 > Before I go through more trouble shooting, does anyone know if CARP = doesn't work with VirtualBox? >=20 > carp configuration > Machine1: > ifconfig_em0=3D"UP" > ifconfig_em0_name=3D"LAN" > ipv4_addrs_LAN=3D"10.20.190.201/16" > defaultrouter=3D"10.20.111.2" > cloned_interfaces=3D"carp0" > ifconfig_carp0=3D"vhid 1 advskew 100 pass ReduntantCarpTest = 10.20.190.203/16 >=20 > ifconfig carp0: > carp0 flags=3D49 metric 0 mtu 1500 > inet 10.20.190.203 netmask 0xffff0000 > nd6 options=3D29 > carp: MASTER vhid 1 advbase 1 advskew 100 >=20 >=20 > Machine2: > ifconfig_em0=3D"UP" > ifconfig_em0_name=3D"LAN" > ipv4_addrs_LAN=3D"10.20.190.202/16" > defaultrouter=3D"10.20.111.2" > cloned_interfaces=3D"carp0" > ifconfig_carp0=3D"vhid 1 pass ReduntantCarpTest 10.20.190.203/16 >=20 > ifconfig carp0: > carp0 flags=3D49 metric 0 mtu 1500 > inet 10.20.190.203 netmask 0xffff0000 > nd6 options=3D29 > carp: BACKUP vhid 1 advbase 1 advskew 0 >=20 > FreeBSD version is 9.1RC3 on both test machines. We're using FreeBSD and CARP in virtualized environments at work, albeit = not on VirtualBox but on Proxmox/KVM. First, I would advise replacing 10.20.190.203/16 with 10.20.190.203/32 I notice your carp0 is MASTER on machine1 with an advskew of 100 vs = machine 2 advskew 0, same advbase. Confirm this is *after* you've set carp0 down on machine2. If both carps are up and machine1 with advskew 100 beats machine2 with = advskew 0, you have an additional problem. See if you have any more luck with the /32 address on carp0 anyway.