From owner-freebsd-questions@FreeBSD.ORG Wed Dec 14 09:26:00 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F2221065670 for ; Wed, 14 Dec 2011 09:26:00 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) Received: from relay2.tomsk.ru (relay2.tomsk.ru [212.73.124.8]) by mx1.freebsd.org (Postfix) with ESMTP id A86B38FC14 for ; Wed, 14 Dec 2011 09:25:59 +0000 (UTC) X-Virus-Scanned: by clamd daemon 0.93.1 for FreeBSD at relay2.tomsk.ru Received: from admin.sibptus.tomsk.ru (account sudakov@sibptus.tomsk.ru [212.73.125.240] verified) by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.13) with ESMTPSA id 22584203 for freebsd-questions@freebsd.org; Wed, 14 Dec 2011 16:25:57 +0700 Received: from admin.sibptus.tomsk.ru (sudakov@localhost [127.0.0.1]) by admin.sibptus.tomsk.ru (8.14.5/8.14.5) with ESMTP id pBE9PvUZ040503 for ; Wed, 14 Dec 2011 16:25:57 +0700 (NOVT) (envelope-from vas@mpeks.tomsk.su) Received: (from sudakov@localhost) by admin.sibptus.tomsk.ru (8.14.5/8.14.5/Submit) id pBE9Pv8q040502 for freebsd-questions@freebsd.org; Wed, 14 Dec 2011 16:25:57 +0700 (NOVT) (envelope-from vas@mpeks.tomsk.su) X-Authentication-Warning: admin.sibptus.tomsk.ru: sudakov set sender to vas@mpeks.tomsk.su using -f Date: Wed, 14 Dec 2011 16:25:57 +0700 From: Victor Sudakov To: FreeBSD Message-ID: <20111214092557.GB38586@admin.sibptus.tomsk.ru> References: <20111214050959.GA34547@admin.sibptus.tomsk.ru> <4EE857D3.2060504@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4EE857D3.2060504@gmail.com> Organization: AO "Svyaztransneft", SibPTUS X-PGP-Key: http://www.livejournal.com/pubkey.bml?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: carp(4) on FreeBSD 8.2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Dec 2011 09:26:00 -0000 Johan Hendriks wrote: > > > > Are there any success stories or known issues with carp(4) on FreeBSD > > 8.2? I have configured a carp interface: [dd] > > But for some reason I can ping 10.14.135.88, but cannot ping > > 10.14.134.99. There seem to be ARP responses however: [dd] > > What am I doing wrong? > Can you show your relevant rc.conf settings. What settings are relevant? I really did not use rc.conf to configure carp. I just did manually ifconfig carp0 create ifconfig carp0 vhid 1 pass XXXXXXXXX 10.14.134.99/23 and the same on the other host. > For both master and slave machine, also the relevant sysctl.conf > settings could help. sysctl.conf is really empty, these are just vanilla boxes in a lab. router1# sysctl -a | grep carp net.inet.ip.same_prefix_carp_only: 0 net.inet.carp.allow: 1 net.inet.carp.preempt: 0 net.inet.carp.log: 1 net.inet.carp.arpbalance: 0 net.inet.carp.suppress_preempt: 0 router1# ipfw list 65535 allow ip from any to any Well, _almost_ vanilla boxes. They have custom kernels: include GENERIC ident FW device carp device lagg options IPFIREWALL #firewall options IPFIREWALL_VERBOSE #enable logging to syslogd(8) options IPFIREWALL_VERBOSE_LIMIT=100 #limit verbosity options IPFIREWALL_DEFAULT_TO_ACCEPT #allow everything by default options IPDIVERT #divert sockets options IPFIREWALL_FORWARD #packet destination changes options IPFIREWALL_NAT #ipfw kernel nat support options LIBALIAS options QUOTA #enable disk quotas options ROUTETABLES=4 # $Header: svn://big/configs/kernels/trunk/FW 2967 2011-12-13 10:08:29Z sudakov $ -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov@sibptus.tomsk.ru