From owner-freebsd-net@FreeBSD.ORG Tue Jul 5 08:58:54 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 990C2106566B; Tue, 5 Jul 2011 08:58:54 +0000 (UTC) (envelope-from ermal.luci@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 559FC8FC14; Tue, 5 Jul 2011 08:58:54 +0000 (UTC) Received: by iyb11 with SMTP id 11so6708244iyb.13 for ; Tue, 05 Jul 2011 01:58:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=7j/5aosWJ8VQUfASc2n+dY9naYDOa7M0kwB6AOehUh0=; b=BrpQGJmK1lJrZgoEkUQWblUjvZWIYackAlliDwxgEaVRAYV86cNtq8Rf8+HmjxP1pn 0H2zModok+0ZvMiSU0nEqnCjtqTlmlgnuonDdVWhGnOyTeLh6rkPZFYDcdk90aqOqNRv u0RBCCo9sa/WZJyILOIkso0tRaeU3VZbcsKyI= MIME-Version: 1.0 Received: by 10.42.19.69 with SMTP id a5mr7460614icb.69.1309854879009; Tue, 05 Jul 2011 01:34:39 -0700 (PDT) Sender: ermal.luci@gmail.com Received: by 10.231.171.148 with HTTP; Tue, 5 Jul 2011 01:34:38 -0700 (PDT) In-Reply-To: <4E12A1F3.1040302@rancid.berkeley.edu> References: <4E127E18.6090509@FreeBSD.org> <4E128477.6030108@rancid.berkeley.edu> <4E12911D.2060604@FreeBSD.org> <4E129312.4000709@FreeBSD.org> <4E12A1F3.1040302@rancid.berkeley.edu> Date: Tue, 5 Jul 2011 10:34:38 +0200 X-Google-Sender-Auth: uzd_ifKsOCrwazvnc6b6ZGxYs0Q Message-ID: From: =?ISO-8859-1?Q?Ermal_Lu=E7i?= To: Michael Sinatra Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org, Doug Barton Subject: Re: carp for IPv6? 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: Tue, 05 Jul 2011 08:58:54 -0000 On Tue, Jul 5, 2011 at 7:32 AM, Michael Sinatra wrote: > On 07/04/11 21:29, Doug Barton wrote: >> >> On 07/04/2011 21:20, Doug Barton wrote: >>> >>> On 07/04/2011 20:26, Michael Sinatra wrote: >>>> >>>> On 07/04/11 19:59, Doug Barton wrote: >>>>> >>>>> If I try to set up a carp interface for IPv6 on a recent 8.2-STABLE I >>>>> get an error using either /64 or /128 as the mask: >>>>> >>>>> ifconfig carp2 vhid 4 advskew 0 pass mycleverpass 2001:a:b:c::2/64 >>>>> >>>>> ifconfig 2001:a:b:c::2/64: bad value (width too large) >>>>> >>>>> There are no examples for IPv6 in the man page, or the handbook; and = I >>>>> can't find any on line. I'm interested in configuration for the comma= nd >>>>> line, and rc.conf. >>>> >>>> ifconfig_carp0=3D"vhid 80 advskew 120 pass yomama 128.32.206.100/32" >>>> ipv6_ifconfig_carp0=3D"2607:f140:ffff:ffff::80/128" >>>> >>>> Works on 8.2-STABLE (June 7, 2011). >>>> >>>> Note that I cannot get carp to work properly without configuring an IP= v4 >>>> address. >> >> I should point out that I was able to do the following: >> >> ifconfig carp2 *inet6* vhid 4 .... >> >> as above, and it "worked" in the sense that it configured the carp >> interface, but subsequently my IPv6 network went straight into the >> crapper. Hence, the statement that it won't work without an IPv4 address >> seems to be correct. This seems pretty sub-optimal given the world we >> currently live in ... > The carp_* patches in this repository https://github.com/bsdperimeter/pfsense-tools/tree/master/patches/RELENG_8_= 1 especially the livelock and ipalias one make it work for pfSense. > Sorry, I was watching fireworks or I would have tipped you off on that on= e > earlier. =A0I was setting that config up as part of a talk I gave on buil= ding > a redundant IPv6 web reverse-proxy for World IPv6 Day, which has some of = the > config snippets I just gave you. =A0This was at the Internet2/ESCC Joint = Techs > meeting: > > http://www.internet2.edu/presentations/jt2011winter/20110202-sinatra-worl= d-IPv6-day-LT.pdf > > The video for the talk can be seen here: > > http://events.internet2.edu/2011/jt-clemson/agenda.cfm?go=3Dsession&id=3D= 10001572&event=3D1150 > > Anyway, I had some trouble getting carp to work correctly between 8.x hos= ts > and 7.x hosts (both sides claimed to be master), in addition to the IPv6 > issue. =A0I had meant to do some more troubleshooting after I returned fr= om > the talk, but I was in the process of changing jobs and a couple of the t= est > servers at UCB are currently down and I need to get them back up. =A0In o= ther > words, I haven't had the chance to troubleshoot these issues further, but= I > do know that you definitely need to configure IPv4 on the interface. > > michael > _______________________________________________ > 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" > --=20 Ermal