From owner-freebsd-net@FreeBSD.ORG Thu Nov 24 01:43:34 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D7AD16A41F for ; Thu, 24 Nov 2005 01:43:34 +0000 (GMT) (envelope-from jay2xra@yahoo.com) Received: from web51604.mail.yahoo.com (web51604.mail.yahoo.com [206.190.38.209]) by mx1.FreeBSD.org (Postfix) with SMTP id 4F62843DA0 for ; Thu, 24 Nov 2005 01:42:45 +0000 (GMT) (envelope-from jay2xra@yahoo.com) Received: (qmail 48391 invoked by uid 60001); 24 Nov 2005 01:42:44 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=d662bKDEJDvedLt8f5dRNk2YpaPMb4LSd75sK0OgeaRx32YIFCmqlvg3uZ79/orRHYn4DezBObQrA9O9WI6LtggGGBNdyPNlsLFsWI7B++ZjLwHaLg2ZvEzp3aTkg5FndrG1Nek5yBB7T1vGGigNZ2JVm9r9rlm3NANADV+IGxk= ; Message-ID: <20051124014244.48389.qmail@web51604.mail.yahoo.com> Received: from [202.90.128.28] by web51604.mail.yahoo.com via HTTP; Wed, 23 Nov 2005 17:42:44 PST Date: Wed, 23 Nov 2005 17:42:44 -0800 (PST) From: Mark Jayson Alvarez To: Atanas Yankov , freebsd-net@freebsd.org In-Reply-To: <43846943.7050108@LanGame.Net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: carp questions 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: Thu, 24 Nov 2005 01:43:34 -0000 Good day freebsd-net! I have tried everything to make it work, yet I failed misserably Here are my findings: 1. First arping only works if it detects more than 1 carp-enabled machine. 2. I can still see that both of the two carp-enabled machine as BACKUP (even with the other having lower advskew). 3. I still can't ping the virtual ip address.. perhaps because none of them is in MASTER state.. specifying 'state MASTER' in ifconfig results in command error. If this is the case, then how would I ever be able to use that virtual ip for the clients gateway? Specifying a lower advskew doesn't make it MASTER either. 4. In OpenBSD's carp documentation, one can specify the state, and also the carp device to use that will belong to the group, however not in FreeBSD, are those still necessary in FreeBSD? Here are the ifconfig output on both machine: Machine intended to be the MASTER: xl0: flags=8943 mtu 1500 options=9 inet6 fe80::201:2ff:fe88:d8c%xl0 prefixlen 64 scopeid 0x1 inet 10.10.8.144 netmask 0xffffff00 broadcast 10.10.8.255 ether 00:01:02:88:0d:8c media: Ethernet autoselect (100baseTX ) status: active plip0: flags=108810 mtu 1500 lo0: flags=8049 mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 carp0: flags=41 mtu 1500 inet 10.10.8.146 netmask 0xffffff00 carp: BACKUP vhid 1 advbase 1 advskew 0 Machine intended to be the BACKUP: xl0: flags=8943 mtu 1500 options=9 inet6 fe80::201:2ff:fe90:1957%xl0 prefixlen 64 scopeid 0x1 inet 10.10.8.145 netmask 0xffffff00 broadcast 10.10.8.255 ether 00:01:02:90:19:57 media: Ethernet autoselect (100baseTX ) status: active plip0: flags=108810 mtu 1500 lo0: flags=8049 mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 carp0: flags=41 mtu 1500 inet 10.10.8.146 netmask 0xffffff00 carp: BACKUP vhid 1 advbase 1 advskew 100 The sysctl output on both machines: net.inet.carp.allow: 1 net.inet.carp.preempt: 1 net.inet.carp.log: 1 net.inet.carp.arpbalance: 0 net.inet.carp.suppress_preempt: 0 Anymore idea? Thanks Atanas Yankov wrote: It's must go into ports and install it ;)) cd /usr/ports/net/arping/ make install clean then man arping and then read man carp carefully there is 2 examples one that work for fail-over and second that make fail-over and load-balacing i think you should try this one < ifconfig carp0 create ifconfig carp0 vhid 1 pass mekmitasdigoat 192.168.1.10/24 ifconfig carp1 create ifconfig carp1 vhid 2 advskew 100 pass mekmitasdigoat 192.168.1.10/24 The configuration for host B is identical, except the advskew is on vir- tual host 1 rather than virtual host 2. ifconfig carp0 create ifconfig carp0 vhid 1 advskew 100 pass mekmitasdigoat 192.168.1.10/24 ifconfig carp1 create ifconfig carp1 vhid 2 pass mekmitasdigoat 192.168.1.10/24 Finally, the ARP balancing feature must be enabled on both hosts: sysctl net.inet.carp.arpbalance=1 > then arping -i em0 192.168.1.10 br, CCNP Atanas Yankov Network Administrator AngelSoft Ltd. Mark Jayson Alvarez wrote: > > > */Atanas Yankov /* wrote: > > The better solutuon to test how carp worked is a arping :))) not > ssh or > other and you may be > need to set a /32 mask for a virtual ip address , if you remind how > works ip alliasing in freebsd. > > No luck, no manual entry for arping. the /32 mask won't work either. > both of them shows that they are the BACKUP machine.. Ucarp is a lot > easier... however I really like to make this work in the kernel > level.. anymore idea? > > ------------------------------------------------------------------------ > Yahoo! FareChase - Search multiple travel sites in one click. > _______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs. Try it free.