From owner-freebsd-stable@FreeBSD.ORG Mon Oct 23 20:21:40 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8FA8316A403 for ; Mon, 23 Oct 2006 20:21:40 +0000 (UTC) (envelope-from vivek@khera.org) Received: from yertle.kcilink.com (yertle.kcilink.com [65.205.34.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7BE3B43D6E for ; Mon, 23 Oct 2006 20:21:37 +0000 (GMT) (envelope-from vivek@khera.org) Received: from [192.168.7.103] (host-103.int.kcilink.com [192.168.7.103]) by yertle.kcilink.com (Postfix) with ESMTP id 78BA8B80F; Mon, 23 Oct 2006 16:21:36 -0400 (EDT) In-Reply-To: <200610231950.39584.max@love2party.net> References: <8F9483A9-D387-443E-A325-356958211153@khera.org> <200610231950.39584.max@love2party.net> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: multipart/signed; micalg=sha1; boundary=Apple-Mail-14-791585895; protocol="application/pkcs7-signature" Message-Id: <05BE5E0E-0A4A-4946-8650-3608EBAF540E@khera.org> From: Vivek Khera Date: Mon, 23 Oct 2006 16:21:35 -0400 To: Max Laier X-Mailer: Apple Mail (2.752.2) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-stable@freebsd.org Subject: Re: CARP not balancing automatically X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Oct 2006 20:21:40 -0000 --Apple-Mail-14-791585895 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Oct 23, 2006, at 1:50 PM, Max Laier wrote: >> Until I perform this manual step, all traffic goes to the single box. >> After I perform this step, the traffic is balanced nicely as expected >> amongst the local network hosts. Each box then has one MASTER and >> one BACKUP carp interface for this IP. > > Sounds like you forgot the net.inet.carp.preempt sysctl. See the > begining > of the EXAMPLES section of carp(4). But I don't have multiple interfaces that all need to go up/down together. I need one carp interface to be master and one backup on box A, and the opposite master/backup on box B. Or am I totally misunderstanding with the preemtp sysctl is for? The second example in the EXAMPLES section is what I followed. It makes no mention of needing preempt, but does say I need arpbalance. Is the documentation incomplete in the second example, then? What I want to end up with (and what I get after my manual manipulation) is this: one host: carp0: flags=49 mtu 1500 inet 192.168.100.100 netmask 0xffffff00 carp: BACKUP vhid 5 advbase 1 advskew 100 carp1: flags=49 mtu 1500 inet 192.168.100.100 netmask 0xffffff00 carp: MASTER vhid 6 advbase 1 advskew 0 other host: carp0: flags=49 mtu 1500 inet 192.168.100.100 netmask 0xffffff00 carp: MASTER vhid 5 advbase 1 advskew 0 carp1: flags=49 mtu 1500 inet 192.168.100.100 netmask 0xffffff00 carp: BACKUP vhid 6 advbase 1 advskew 100 what happens on boot is one box has both MASTER and the other has both BACKUP resulting in zero load balance. --Apple-Mail-14-791585895--