From owner-freebsd-questions@FreeBSD.ORG Fri Sep 9 06:40:52 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 74E2D106566B for ; Fri, 9 Sep 2011 06:40:52 +0000 (UTC) (envelope-from gvanessen@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 2E4388FC0A for ; Fri, 9 Sep 2011 06:40:51 +0000 (UTC) Received: by vxi39 with SMTP id 39so1438927vxi.13 for ; Thu, 08 Sep 2011 23:40:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=5LWCmRoVJ7e7BiitJf6y7GJ4LAuuCvNemfjSSMh0kOM=; b=FARIt5lv+u/+XUU81e5UnK2r2VlHRSxzvTk7hEMyHkbY0O8tz0+HYNKVgIn0MNAjT8 ODggKsjbb5owxBPVVyqY/0oEYIsKjzB4r1+kNP9wdrW1UhuTVuBuCo38A3xfPTCrhErO DCbWlU0AqXGUtdmuuTIUWCQyXvgbyzH8M0tds= MIME-Version: 1.0 Received: by 10.52.179.9 with SMTP id dc9mr30088vdc.1.1315548697746; Thu, 08 Sep 2011 23:11:37 -0700 (PDT) Received: by 10.220.167.85 with HTTP; Thu, 8 Sep 2011 23:11:37 -0700 (PDT) In-Reply-To: <6C3F8332272B7D4DA26909F15F1C90E1E5B424@SRV01.double-l.local> References: <6C3F8332272B7D4DA26909F15F1C90E1E5AC4C@SRV01.double-l.local> <20110826180517.4e4e585f@mr12941> <6C3F8332272B7D4DA26909F15F1C90E1E5ACC4@SRV01.double-l.local> <6C3F8332272B7D4DA26909F15F1C90E1E5B424@SRV01.double-l.local> Date: Fri, 9 Sep 2011 07:11:37 +0100 Message-ID: From: Gerard van Essen To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: CARP on 9.0 (was no subject) 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: Fri, 09 Sep 2011 06:40:52 -0000 On Fri, Aug 26, 2011 at 10:00 PM, Johan Hendriks wrote: > SOLVED! > > Was a typo in /etc/sysctl.conf > Sorry for the noise > > and thanks for your time. > > regards > Johan > ________________________________________ > Van: owner-freebsd-current@freebsd.org [owner-freebsd-current@freebsd.org] > namens Johan Hendriks [Johan@double-l.nl] > Verzonden: vrijdag 26 augustus 2011 20:22 > Aan: Brian Seklecki (Mobile); freebsd-questions@freebsd.org > CC: freebsd-current@freebsd.org > Onderwerp: RE: CARP on 9.0 (was no subject) > > >How about: > > > %sudo netstat -s carp > > >...on both machines. > > >A few years ago I submitted (or maybe it was Steve Polyack) a patch to add > >debugging to CARP, not sure if it ever got commited. > > >Need-more-Cisco'sih-Debugging. > > >~BAS > > > >On Fri, 26 Aug 2011, Patrick Lamaiziere wrote: > > >> Le Fri, 26 Aug 2011 15:26:28 +0000, > >> Johan Hendriks a ?crit : > >> > >>> I am trying to set up CARP under 9.0 > >> > >> ... > >> > >>> Also with a higer value like advskew 200 or 254 the role of the > >>> servers stays the same. > >> > >> Ok, there is something wrong so. > >> > >> Did you check that the sysctl net.inet.carp.suppress_preempt is equal > >> to zero ? If yes, I don't have any more idea. > >> > >> Regards. > > Hello > first off all thanks for your time. > > sysctl -a | grep carp on both machines give me the following output > > sysctl -a | grep carp > device carp > net.inet.ip.same_prefix_carp_only: 0 > net.inet.carp.allow: 1 > net.inet.carp.preempt: 0 > net.inet.carp.log: 2 > net.inet.carp.arpbalance: 0 > net.inet.carp.suppress_preempt: 0 > > > netstat -s on the master > > carp: > 260 packets received (IPv4) > 0 packets received (IPv6) > 0 packets discarded for wrong TTL > 0 packets shorter than header > 0 discarded for bad checksums > 0 discarded packets with a bad version > 0 discarded because packet too short > 0 discarded for bad authentication > 0 discarded for bad vhid > 0 discarded because of a bad address list > 11430 packets sent (IPv4) > 0 packets sent (IPv6) > 0 send failed due to mbuf memory error > > netstat -s on the slave > > carp: > 11735 packets received (IPv4) > 0 packets received (IPv6) > 0 packets discarded for wrong TTL > 0 packets shorter than header > 0 discarded for bad checksums > 0 discarded packets with a bad version > 0 discarded because packet too short > 0 discarded for bad authentication > 0 discarded for bad vhid > 0 discarded because of a bad address list > 448 packets sent (IPv4) > 0 packets sent (IPv6) > 0 send failed due to mbuf memory error > > tcpdump -i bge0 on slave > > 20:10:48.868200 IP 192.168.50.40 > vrrp.mcast.net: VRRPv2, Advertisement, > vrid 1, prio 50, authtype none, intvl 1s, length 36 > > Here the advskew is set to 50, on the slave it is 20. > So the slave should be the master. > if i raise the advskew to 254, i see the change in the capture. > > Both machines are fresh install with nothing changed on them so far just a > fresh build from a csup this morning. > And installed bash as the shell.. > > for freebsd-current@ the /etc/rc.conf file again > Master > ifconfig_bge0="inet 192.168.50.40 netmask 255.255.255.0" > defaultrouter="192.168.50.150" > # CARP > cloned_interfaces="carp0" > ifconfig_carp0="vhid 1 advskew 10 pass letmepass 192.168.50.45 netmask > 255.255.255.0" > > On the slave i have the following in /etc/rc.conf > ifconfig_bge0="inet 192.168.50.41 netmask 255.255.255.0" > defaultrouter="192.168.50.150" > # CARP > cloned_interfaces="carp0" > ifconfig_carp0="vhid 1 advskew 20 pass letmepass 192.168.50.45 netmask > 255.255.255.0" > > regards, > Johan > > > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >