From owner-freebsd-net@FreeBSD.ORG Tue Mar 31 16:48:45 2015 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E9A22A8C for ; Tue, 31 Mar 2015 16:48:45 +0000 (UTC) Received: from nef2.ens.fr (nef2.ens.fr [129.199.96.40]) by mx1.freebsd.org (Postfix) with ESMTP id 58F396F for ; Tue, 31 Mar 2015 16:48:44 +0000 (UTC) Received: from biologie.ens.fr (milda.ens.fr [129.199.18.219]) by nef2.ens.fr (8.13.6/1.01.28121999) with ESMTP id t2VG2krX081596 for ; Tue, 31 Mar 2015 18:02:47 +0200 (CEST) X-Envelope-To: Received: from localhost (av3.biologie.ens.fr [129.199.21.124]) by biologie.ens.fr (Postfix) with ESMTP id E450F32C2 for ; Tue, 31 Mar 2015 18:02:46 +0200 (CEST) X-Virus-Scanned: spam & virus filtering at av3.ens.fr X-Spam-Flag: NO X-Spam-Score: -10.91 X-Spam-Level: X-Spam-Status: No, score=-10.91 tagged_above=-9999 required=5 tests=[ALL_TRUSTED=-1, AUTHD_RELAY=-8, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01] autolearn=ham Received: from biologie.ens.fr ([IPv6:::ffff:129.199.18.219]) by localhost (av3.biologie.ens.fr [::ffff:129.199.21.124]) (amavisd-new, port 10024) with ESMTP id n8TrO+vcmx79 for ; Tue, 31 Mar 2015 18:02:45 +0200 (CEST) Received: from [129.199.16.44] (hades.ens.fr [129.199.16.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: phnguyen) by biologie.ens.fr (Postfix) with ESMTPSA id 4FB2D32B0 for ; Tue, 31 Mar 2015 18:02:45 +0200 (CEST) Message-ID: <551AC524.7070208@biologie.ens.fr> Date: Tue, 31 Mar 2015 18:02:44 +0200 From: Phi-Phong NGUYEN User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: freebsd-net@freebsd.org Subject: Re: FreeBSD 10.1 and ESXi 5.5 CARP setup References: <20150331142248.29b961db@efreet> In-Reply-To: <20150331142248.29b961db@efreet> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (nef2.ens.fr [129.199.96.32]); Tue, 31 Mar 2015 18:02:47 +0200 (CEST) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 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, 31 Mar 2015 16:48:46 -0000 I have a problem with carp too on FreeBSD 10.1 servers and posted a question but it seems to be more related to firmware network card. However your problem seems simplier as I had the same : If tcpdump reveals vrrp packets between servers and they are stuck in INIT state, try this workaround : Simply add in your /etc/sysctl.conf : ------------------- net.inet.carp.senderr_demotion_factor=0 # (default 240) If not, no preempt -> bug since FreeBSD10 ------------------- Cheers. On 03/31/2015 02:22 PM, Marko Cupać wrote: > Hi, > > I have CARP set up on two pairs of firewalls running OpenBSD directly > on metal. It works like a charm for almost 3 years now. Failover is > almost instant when shutting down master node. > > I am trying to implement CARP on a pair of FreeBSD 10.1 servers running > on top of VMWare ESXi 5.5U2, but so far haven't succedded. > > I tried both e1000 and vmx3f vNICs. I have made adjustments to ESXi as > described here: > https://doc.pfsense.org/index.php/CARP_Configuration_Troubleshooting#Hypervisor_users_.28Especially_VMware_ESX.2FESXi.29 > > I had interfaces stuck in INIT mode until I found this thread: > https://lists.freebsd.org/pipermail/freebsd-net/2014-October/040116.html > > After i put 'up' at the end of ifconfig_em0 It appears I am getting > MASTER and BACKUP, however on reboot of master, failover happens only > after master completely shuts down, which is almost 5 seconds. > > Is CARP supposed to work on FreeBSD 10.1 as ESXi 5.5 guest the same as > on bare-metal OpenBSD (instant failover)? If so, I'd be very grateful > if someone pointed me in the right direction. > > Thank you in advance, -- Phi-Phong NGUYEN Service informatique Institut de Biologie ENS 46 rue d'Ulm 75230 PARIS CEDEX 05 Tel: 01 44 32 36 34 Fax: 01 44 32 36 30