From owner-freebsd-current@FreeBSD.ORG Fri Aug 26 21:00:26 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 600731065677 for ; Fri, 26 Aug 2011 21:00:26 +0000 (UTC) (envelope-from Johan@double-l.nl) Received: from smtp-vbr2.xs4all.nl (smtp-vbr2.xs4all.nl [194.109.24.22]) by mx1.freebsd.org (Postfix) with ESMTP id 0BA558FC1E for ; Fri, 26 Aug 2011 21:00:25 +0000 (UTC) Received: from remote.double-l.nl (double-l.xs4all.nl [80.126.205.144]) by smtp-vbr2.xs4all.nl (8.13.8/8.13.8) with ESMTP id p7QKxsXd094629 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Fri, 26 Aug 2011 22:59:54 +0200 (CEST) (envelope-from Johan@double-l.nl) Received: from SRV01.double-l.local ([fe80::1128:e7bc:ba4a:a89a]) by SRV01.double-l.local ([fe80::1128:e7bc:ba4a:a89a%13]) with mapi id 14.01.0218.012; Fri, 26 Aug 2011 23:00:31 +0200 From: Johan Hendriks To: "freebsd-current@freebsd.org" Thread-Topic: CARP on 9.0 (was no subject) Thread-Index: AcxkBIZfpJv14nlbShODG/2S+Y/3sf//6VCAgAABsoCAAEJNe4AAL73E Date: Fri, 26 Aug 2011 21:00:31 +0000 Message-ID: <6C3F8332272B7D4DA26909F15F1C90E1E5B424@SRV01.double-l.local> References: <6C3F8332272B7D4DA26909F15F1C90E1E5AC4C@SRV01.double-l.local> <20110826180517.4e4e585f@mr12941>, , <6C3F8332272B7D4DA26909F15F1C90E1E5ACC4@SRV01.double-l.local> In-Reply-To: <6C3F8332272B7D4DA26909F15F1C90E1E5ACC4@SRV01.double-l.local> Accept-Language: nl-NL, en-US Content-Language: nl-NL X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [94.208.228.112] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Scanned: by XS4ALL Virus Scanner Subject: RE: CARP on 9.0 (was no subject) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2011 21:00:26 -0000 SOLVED!=0A= =0A= Was a typo in /etc/sysctl.conf=0A= Sorry for the noise=0A= =0A= and thanks for your time.=0A= =0A= regards=0A= Johan=0A= ________________________________________=0A= Van: owner-freebsd-current@freebsd.org [owner-freebsd-current@freebsd.org] = namens Johan Hendriks [Johan@double-l.nl]=0A= Verzonden: vrijdag 26 augustus 2011 20:22=0A= Aan: Brian Seklecki (Mobile); freebsd-questions@freebsd.org=0A= CC: freebsd-current@freebsd.org=0A= Onderwerp: RE: CARP on 9.0 (was no subject)=0A= =0A= >How about:=0A= =0A= > %sudo netstat -s carp=0A= =0A= >...on both machines.=0A= =0A= >A few years ago I submitted (or maybe it was Steve Polyack) a patch to add= =0A= >debugging to CARP, not sure if it ever got commited.=0A= =0A= >Need-more-Cisco'sih-Debugging.=0A= =0A= >~BAS=0A= =0A= =0A= >On Fri, 26 Aug 2011, Patrick Lamaiziere wrote:=0A= =0A= >> Le Fri, 26 Aug 2011 15:26:28 +0000,=0A= >> Johan Hendriks a ?crit :=0A= >>=0A= >>> I am trying to set up CARP under 9.0=0A= >>=0A= >> ...=0A= >>=0A= >>> Also with a higer value like advskew 200 or 254 the role of the=0A= >>> servers stays the same.=0A= >>=0A= >> Ok, there is something wrong so.=0A= >>=0A= >> Did you check that the sysctl net.inet.carp.suppress_preempt is equal=0A= >> to zero ? If yes, I don't have any more idea.=0A= >>=0A= >> Regards.=0A= =0A= Hello=0A= first off all thanks for your time.=0A= =0A= sysctl -a | grep carp on both machines give me the following output=0A= =0A= sysctl -a | grep carp=0A= device carp=0A= net.inet.ip.same_prefix_carp_only: 0=0A= net.inet.carp.allow: 1=0A= net.inet.carp.preempt: 0=0A= net.inet.carp.log: 2=0A= net.inet.carp.arpbalance: 0=0A= net.inet.carp.suppress_preempt: 0=0A= =0A= =0A= netstat -s on the master=0A= =0A= carp:=0A= 260 packets received (IPv4)=0A= 0 packets received (IPv6)=0A= 0 packets discarded for wrong TTL=0A= 0 packets shorter than header=0A= 0 discarded for bad checksums=0A= 0 discarded packets with a bad version=0A= 0 discarded because packet too short=0A= 0 discarded for bad authentication=0A= 0 discarded for bad vhid=0A= 0 discarded because of a bad address list=0A= 11430 packets sent (IPv4)=0A= 0 packets sent (IPv6)=0A= 0 send failed due to mbuf memory error=0A= =0A= netstat -s on the slave=0A= =0A= carp:=0A= 11735 packets received (IPv4)=0A= 0 packets received (IPv6)=0A= 0 packets discarded for wrong TTL=0A= 0 packets shorter than header=0A= 0 discarded for bad checksums=0A= 0 discarded packets with a bad version=0A= 0 discarded because packet too short=0A= 0 discarded for bad authentication=0A= 0 discarded for bad vhid=0A= 0 discarded because of a bad address list=0A= 448 packets sent (IPv4)=0A= 0 packets sent (IPv6)=0A= 0 send failed due to mbuf memory error=0A= =0A= tcpdump -i bge0 on slave=0A= =0A= 20:10:48.868200 IP 192.168.50.40 > vrrp.mcast.net: VRRPv2, Advertisement, v= rid 1, prio 50, authtype none, intvl 1s, length 36=0A= =0A= Here the advskew is set to 50, on the slave it is 20.=0A= So the slave should be the master.=0A= if i raise the advskew to 254, i see the change in the capture.=0A= =0A= Both machines are fresh install with nothing changed on them so far just a = fresh build from a csup this morning.=0A= And installed bash as the shell..=0A= =0A= for freebsd-current@ the /etc/rc.conf file again=0A= Master=0A= ifconfig_bge0=3D"inet 192.168.50.40 netmask 255.255.255.0"=0A= defaultrouter=3D"192.168.50.150"=0A= # CARP=0A= cloned_interfaces=3D"carp0"=0A= ifconfig_carp0=3D"vhid 1 advskew 10 pass letmepass 192.168.50.45 netmask 25= 5.255.255.0"=0A= =0A= On the slave i have the following in /etc/rc.conf=0A= ifconfig_bge0=3D"inet 192.168.50.41 netmask 255.255.255.0"=0A= defaultrouter=3D"192.168.50.150"=0A= # CARP=0A= cloned_interfaces=3D"carp0"=0A= ifconfig_carp0=3D"vhid 1 advskew 20 pass letmepass 192.168.50.45 netmask 25= 5.255.255.0"=0A= =0A= regards,=0A= Johan=0A= =0A= =0A= =0A= _______________________________________________=0A= freebsd-current@freebsd.org mailing list=0A= http://lists.freebsd.org/mailman/listinfo/freebsd-current=0A= To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"= =0A=