From owner-freebsd-net@FreeBSD.ORG Mon Nov 2 03:37:13 2009 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 620E71065670 for ; Mon, 2 Nov 2009 03:37:13 +0000 (UTC) (envelope-from ask@develooper.com) Received: from x8.develooper.com (mbox1.develooper.com [207.171.7.178]) by mx1.freebsd.org (Postfix) with ESMTP id 4B89E8FC2A for ; Mon, 2 Nov 2009 03:37:13 +0000 (UTC) Received: (qmail 9989 invoked from network); 2 Nov 2009 03:09:11 -0000 Received: from gw.develooper.com (HELO embla.bn.dev) (ask@mail.dev@64.81.84.140) by smtp.develooper.com with ESMTPA; 2 Nov 2009 03:09:11 -0000 From: =?iso-8859-1?Q?Ask_Bj=F8rn_Hansen?= Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Date: Sun, 1 Nov 2009 19:09:11 -0800 Message-Id: To: freebsd-net@freebsd.org Mime-Version: 1.0 (Apple Message framework v1076) X-Mailer: Apple Mail (2.1076) Subject: carp advskew not 'sticking' 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, 02 Nov 2009 03:37:13 -0000 Hi everyone, On a set of gw boxes I have 5 carp interfaces. 4 are working fine, but on one for some reason the advskew setting isn't "sticking" (and I get carp2: incorrect hash). I'm running 7.2-STABLE from a few days ago. gw-a# ifconfig carp2 vhid 12 advskew 100 pass abc123 10.0.100.1/24 gw-a# ifconfig carp2 carp2: flags=49 metric 0 mtu 1500 inet 10.0.100.1 netmask 0xffffff00 carp: BACKUP vhid 12 advbase 1 advskew 0 gw-b# ifconfig carp2 vhid 12 advskew 200 pass abc123 10.0.100.1/24 gw-b# ifconfig carp2 carp2: flags=49 metric 0 mtu 1500 inet 10.0.100.1 netmask 0xffffff00 carp: MASTER vhid 12 advbase 1 advskew 0 (notice how advskew is 200 ...) I'm pasting the ifconfig for the parent interfaces (the physical interface and the vlan) and for the other carp interface on the same network below for each host. Any ideas would be greatly appreciated. I don't usually use the /cidr notation on carp interfaces, but I noticed the netmask was wrong before and thought that could be related. How can I get more debug information? Right now all I get is "carp2: incorrect hash" Another related question: I use net.inet.carp.preempt=1; but for some reason this interface gets to "float" to either box without all the other interfaces moving along with it. - ask gw-a# ifconfig vr2 vr2: flags=8943 metric 0 mtu 1500 options=280b ether 00:0d:b9:12:75:ea media: Ethernet autoselect (100baseTX ) status: active gw-a# ifconfig vlan2 vlan2: flags=8943 metric 0 mtu 1500 ether 00:0d:b9:12:75:ea inet 10.0.100.2 netmask 0xffffff00 broadcast 10.0.100.255 media: Ethernet autoselect (100baseTX ) status: active vlan: 102 parent interface: vr2 gw-a# ifconfig carp4 carp4: flags=49 metric 0 mtu 1500 inet 10.0.100.254 netmask 0xffffff00 carp: MASTER vhid 5 advbase 1 advskew 100 gw-a# gw-b# ifconfig vr2 vr2: flags=8943 metric 0 mtu 1500 options=280b ether 00:0d:b9:12:75:3e media: Ethernet autoselect (100baseTX ) status: active gw-b# ifconfig vlan2 vlan2: flags=8943 metric 0 mtu 1500 ether 00:0d:b9:12:75:3e inet 10.0.100.3 netmask 0xffffff00 broadcast 10.0.100.255 media: Ethernet autoselect (100baseTX ) status: active vlan: 102 parent interface: vr2 gw-b# ifconfig carp4 carp4: flags=49 metric 0 mtu 1500 inet 10.0.100.254 netmask 0xffffff00 carp: BACKUP vhid 5 advbase 1 advskew 200 gw-b#