From owner-freebsd-questions@freebsd.org Thu Dec 10 19:07:32 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 87F469D5C3F for ; Thu, 10 Dec 2015 19:07:32 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 041141363 for ; Thu, 10 Dec 2015 19:07:31 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id 182488aa for ; Thu, 10 Dec 2015 20:00:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h= mime-version:content-type:content-transfer-encoding:date:from:to :subject:in-reply-to:references:message-id; s=mail; bh=7mKU6f4TE mJW+CtP4qdW453oekQ=; b=s5T+tbdg9w1VEw1gcsxinNtY2NfnsW4tRFWVR0Z6t AV7W9TcQE3VwrJv9adU1zbHpf4g+74mJnC0+HinSV8Aeye+VWVT9bxwoDeOebbb+ j/t6aheyZg0qbsURow9LWr2gXQwYyNiKHmdzGhjv2qBW3p4Ig6xjxhhxCw5HEQJi LY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h= mime-version:content-type:content-transfer-encoding:date:from:to :subject:in-reply-to:references:message-id; q=dns; s=mail; b=nnw 1VE2gMTL7STegcLTQ2fCxiLamR9rwLaxLseoGw4y1a7b/s5ce3QaK4bLMyDxL0Nx AHYDIpzdIjDTUUzVPs1evFiDfIMSlH8YQJwBBb4qBRybNItqmdLh+6yQlSbrXsXB SXeOD6+W5149f7ilz+01HBvOwfOohvfvzUzEvGvI= Received: from webmail.megadrive.org (www1.blih.net [212.83.177.180]) by mail.blih.net (OpenSMTPD) with ESMTP id b4cfa58a for ; Thu, 10 Dec 2015 20:00:48 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 10 Dec 2015 20:00:48 +0100 From: Emmanuel Vadot To: freebsd-questions@freebsd.org Subject: Re: CARP demotion counter Organization: Bidouilliste In-Reply-To: <20151210182821.GM13477@mordor.lan> References: <20151210182821.GM13477@mordor.lan> Message-ID: X-Sender: manu@bidouilliste.com User-Agent: Roundcube Webmail/1.1.1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Dec 2015 19:07:32 -0000 On 2015-12-10 19:28, Julien Cigar wrote: > Hello, > > I'm busy to setup a redundant router/firewall with two Soekris 6501, > PF, > CARP and PFSync. > > I wondered if it was normal that the CARP demotion counter > (net.inet.carp.demotion) is greater than 0 at boot? > > I'm asking this because it seems that the MASTER never returns from a > BACKUP state, and it seems that's because the demotion counter is > greater than 0 on both boxes (480) .. > > Any idea .. ? > > Thanks, > Julien You need net.inet.carp.preempt=1 for MASTER returning to MASTER after a BACKUP state. Otherwise as long as another machine have the carp ip, it will stay to BACKUP. -- Emmanuel Vadot