From owner-freebsd-net@FreeBSD.ORG Mon Oct 25 11:53:14 2010 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 A2C2A1065675 for ; Mon, 25 Oct 2010 11:53:14 +0000 (UTC) (envelope-from nr1c0re@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 5533B8FC16 for ; Mon, 25 Oct 2010 11:53:13 +0000 (UTC) Received: by qyk33 with SMTP id 33so1291315qyk.13 for ; Mon, 25 Oct 2010 04:53:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=b3kYCOjCCEPkquhi8dWLCYStNdNjWoiN02Eu8ZXHGFk=; b=SGUKifCHXkO8UlqX1hFbalWRN/nES9J+gggZMdrGR9As9JhpOjVFTUCgDcIjpU3g0Z inrenqomy+Z930oPagLeKoPfsgNbd7fWJn2ZzP0G5Is+Sl0csA/R4I7wy9Qmd8HLysI9 3XLRn/1Mk5Lzvu/8B5TXF+QFaBcJMt/18Vuuo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=pKguMb98SXtANp+FYDMPuQ68RBKIBC9kPDBEVPcFN1ZngyZ9Z2PTsT0gF4GJEYfzyp n+XD98pXqEO2UbvGU1Ei92/o41j7QZjIZGtL79grzLh34/fbtacHhJ/pVNIiB28sfQS7 wSjd021BE06k22X7lP5/YlE6HRFaZc7nojHLw= MIME-Version: 1.0 Received: by 10.229.214.73 with SMTP id gz9mr6235475qcb.226.1288007593069; Mon, 25 Oct 2010 04:53:13 -0700 (PDT) Received: by 10.229.217.20 with HTTP; Mon, 25 Oct 2010 04:53:12 -0700 (PDT) In-Reply-To: References: Date: Mon, 25 Oct 2010 15:53:12 +0400 Message-ID: From: c0re To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: carp and arp_rtrequest: bad gateway 1.1.1.5 (!AF_LINK) 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: Mon, 25 Oct 2010 11:53:14 -0000 Further workaround: 1st server has advbase 1 and advskew 0 2nd server has advbase 1 and advskew 100 So 2nd server should failover after what period of time when 1st server fails? In openbsd man 8 ifconfig ( http://www.openbsd.org/cgi-bin/man.cgi?query=ifconfig&apropos=0&sektion=8&manpath=OpenBSD+Current&arch=i386&format=html ) I found that info: Taken together, the advbase and advskew indicate how frequently, in seconds, the host will advertise the fact that it considers itself master of the virtual host. The formula is advbase + (advskew / 256). If the master does not advertise within three times this interval, this host will begin advertising as master. Due to CARP be ported from openbsd I think it should be same for freebsd too. So 2nd server should take MASTER state after 3*(advbase+(advskew / 256)) = 3*(1+(100/256)) =~ 4 secs. But when I promote 1st servers CARP interface down, 2nd server became MASTER immediately, no 4 seconds holdtime/timeout occurs. Why is it so? Any tips? Want to understand why 2nd server takes master state too often while 1st server are still available in network.