From owner-freebsd-pf@FreeBSD.ORG Wed Apr 2 07:36:02 2014 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8A3BFD6C for ; Wed, 2 Apr 2014 07:36:02 +0000 (UTC) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com [209.85.217.174]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0F8A5690 for ; Wed, 2 Apr 2014 07:36:01 +0000 (UTC) Received: by mail-lb0-f174.google.com with SMTP id u14so7824143lbd.33 for ; Wed, 02 Apr 2014 00:35:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=vxwURSWygoP2NpefqDSb9bSBSUNEW4waD7GxOVSF6C8=; b=Y1Frio282CaPsRVddbn+Bh3F/AY0cmy57lb29lVuchJlNIzWiO+izlyFbLSkZPv+7J 428uoPpuByuwoYDC1CXewv/ENKEwe5Bei6gfR8597JPDwkgK1QP2acOddpfgLcYhxD8x ila0k0oAQqklOzSFcgOoYSKvS3037rmVF1/O4ILTsDxNtiIwCjDPH/fl+sgU1dyw4Kz8 O+KaNvF11oX+ES9m8k7YWrSZ/6Xi2rBB/Xt7ecWaSSRl/HM3n67m3y9fnOrmgB/MGe+6 Au4CIUN3fC2uyo562M6q4ujkYVUYBXEgJWChNznMCkRjl+PN8WWPgPCR05VyUzKGFZFN dTLQ== X-Gm-Message-State: ALoCoQl2JXk6CUQ8TrfquIsWX7pJLIMAz9k9fFWiGOw38XyEXx7n3jmHpxecnjHvSwUgTmKkmxdU X-Received: by 10.152.29.8 with SMTP id f8mr26252190lah.11.1396424154430; Wed, 02 Apr 2014 00:35:54 -0700 (PDT) Received: from grey.office.se.prisjakt.nu ([212.16.170.194]) by mx.google.com with ESMTPSA id r5sm810261lbb.7.2014.04.02.00.35.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 02 Apr 2014 00:35:53 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: FreeBSD 10-STABLE and CARP states From: mxb In-Reply-To: <4A818132-757F-4BAD-8137-CDB1F6F0681C@alumni.chalmers.se> Date: Wed, 2 Apr 2014 09:35:54 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4A818132-757F-4BAD-8137-CDB1F6F0681C@alumni.chalmers.se> To: freebsd-net@freebsd.org X-Mailer: Apple Mail (2.1874) Cc: freebsd-pf@freebsd.org X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2014 07:36:02 -0000 Moving this to freebsd-pf. On 31 mar 2014, at 22:21, mxb wrote: >=20 > Manually setting net.inet.carp.demotion brought BOTH VHIDs in desired = state. > pfsync bulk update seems to not put everything back as it should. >=20 > lagg0: flags=3D8943 = metric 0 mtu 9000 > = options=3D8407bb > ether 00:25:90:e3:71:f2 > inet 172.16.0.234 netmask 0xfffff800 broadcast 172.16.7.255 > inet6 fe80::225:90ff:fee3:71f2%lagg0 prefixlen 64 scopeid 0x5 > inet 172.16.0.231 netmask 0xfffff800 broadcast 172.16.7.255 vhid = 201 > inet 172.16.0.233 netmask 0xfffff800 broadcast 172.16.7.255 vhid = 202 > nd6 options=3D29 > media: Ethernet autoselect > status: active > carp: MASTER vhid 201 advbase 1 advskew 1 > carp: BACKUP vhid 202 advbase 5 advskew 100 > laggproto lacp lagghash l2,l3,l4 > laggport: ix1 flags=3D1c > laggport: ix0 flags=3D1c >=20 >=20 > On 31 mar 2014, at 20:42, mxb wrote: >=20 >>=20 >> Hi list, >>=20 >> hopefully this is the right place to have my question regarding CARP = on 10-STABLE. >>=20 >> I have two nodes with following setup(node1): >>=20 >> lagg0: flags=3D8943 = metric 0 mtu 9000 >> = options=3D8407bb >> ether 00:25:90:e3:71:f2 >> inet 172.16.0.234 netmask 0xfffff800 broadcast 172.16.7.255 >> inet6 fe80::225:90ff:fee3:71f2%lagg0 prefixlen 64 scopeid 0x5 >> inet 172.16.0.231 netmask 0xfffff800 broadcast 172.16.7.255 vhid = 201 >> inet 172.16.0.233 netmask 0xfffff800 broadcast 172.16.7.255 vhid = 202 >> nd6 options=3D29 >> media: Ethernet autoselect >> status: active >> carp: BACKUP vhid 201 advbase 1 advskew 1 >> carp: BACKUP vhid 202 advbase 5 advskew 100 >> laggproto lacp lagghash l2,l3,l4 >> laggport: ix1 flags=3D1c >> laggport: ix0 flags=3D1c >>=20 >> net.inet.carp.preempt=3D1 on both nodes. as well as PSYNC as this: >>=20 >> pfsync0: flags=3D41 metric 0 mtu 1500 >> pfsync: syncdev: vlan22 syncpeer: 10.22.22.2 maxupd: 128 defer: = off >>=20 >> The problem is (if it is not clear from the ifconfig-output for the = lagg0) the state of VHID 201. >> Node2 with advskew of 100 is currently MASTER, but it SHOULD NOT as = of setup. >>=20 >> Am I hitting a bug or doing something wrong? >>=20 >> I also have noted that after the pfsync bulk update the demotion = counter never setts to 0, but stays on 480, >> thus preventing node1 become a MASTER 201(?). Or is this a normal = behavior? >>=20 >> Regards, >> mxb >>=20 >>=20 >=20