From owner-freebsd-net@FreeBSD.ORG Thu Nov 24 10:38:51 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 76AE516A41F for ; Thu, 24 Nov 2005 10:38:51 +0000 (GMT) (envelope-from jay2xra@yahoo.com) Received: from web51601.mail.yahoo.com (web51601.mail.yahoo.com [206.190.38.206]) by mx1.FreeBSD.org (Postfix) with SMTP id 9BEEB43D62 for ; Thu, 24 Nov 2005 10:38:48 +0000 (GMT) (envelope-from jay2xra@yahoo.com) Received: (qmail 49260 invoked by uid 60001); 24 Nov 2005 10:38:47 -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=epgtni1glFbgISfLCAtzBbjPChs8EwgHdEZgbBfwaj2+vtoeBa8U1OevFNyg8Z+k5sXvHDPdjNwKxxnia2WG2HGBXdfmAVPkDpPb7RMxBhlBYmdAqeXI2MIcbazQEVg2g0zYDBSKqfA8H8S7ql3XhkVjtz63b9nK2EKFMxBLIFk= ; Message-ID: <20051124103847.49258.qmail@web51601.mail.yahoo.com> Received: from [202.90.128.21] by web51601.mail.yahoo.com via HTTP; Thu, 24 Nov 2005 02:38:47 PST Date: Thu, 24 Nov 2005 02:38:47 -0800 (PST) From: Mark Jayson Alvarez To: Atanas Yankov , freebsd-net@freebsd.org In-Reply-To: <43858FD9.9070603@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 10:38:51 -0000 Hi Atanas, Thank you for helping me. Its working now. However, I didn't know the sysctl net.inet.carp.arpbalance must be enabled just to make everything work. I thought that sysctl is only needed if you intend to do some load balancing (the manual says it)..in which it wasn't my aim in the first place. But thanks again... its almost time to go home now.. tomorrow it will be a good day to start my work =) Good evening, from here in the Philippines!! Atanas Yankov wrote: You miss sysctl net.inet.carp.arpbalance=1 if this not work again please paste you current carp config Mark Jayson Alvarez wrote: br, CCNP Atanas Yankov Network Administrator AngelSoft Ltd. >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 > > > > Finally, the ARP balancing feature must be enabled on both hosts: sysctl net.inet.carp.arpbalance=1 > > 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. >_______________________________________________ >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" > > > > _______________________________________________ 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.