From owner-freebsd-net@FreeBSD.ORG Thu Nov 24 10:02:47 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 B837C16A41F for ; Thu, 24 Nov 2005 10:02:47 +0000 (GMT) (envelope-from xds@LanGame.Net) Received: from netmail.langame.net (netmail.langame.net [80.80.128.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id B8DD243D5E for ; Thu, 24 Nov 2005 10:02:45 +0000 (GMT) (envelope-from xds@LanGame.Net) Received: (qmail 86042 invoked by uid 0); 24 Nov 2005 07:03:21 -0000 Received: from xds@LanGame.Net by netmail.langame.net by uid 0 with qmail-scanner-1.22 (clamdscan: 0.72. Clear:RC:1(80.80.128.68):. Processed in 0.052869 secs); 24 Nov 2005 07:03:21 -0000 X-Qmail-Scanner-Mail-From: xds@LanGame.Net via netmail.langame.net X-Qmail-Scanner: 1.22 (Clear:RC:1(80.80.128.68):. Processed in 0.052869 secs) Received: from unknown (HELO ?80.80.128.68?) (xds%langame.net@80.80.128.68) by netmail.langame.net with SMTP; 24 Nov 2005 07:03:21 -0000 Message-ID: <43858FD9.9070603@LanGame.Net> Date: Thu, 24 Nov 2005 12:03:05 +0200 From: Atanas Yankov User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050729) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <20051124014244.48389.qmail@web51604.mail.yahoo.com> In-Reply-To: <20051124014244.48389.qmail@web51604.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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:02:47 -0000 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" > > > >