From owner-freebsd-net@FreeBSD.ORG Fri Sep 24 11:30:39 2010 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 170F91065670; Fri, 24 Sep 2010 11:30:39 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail.allbsd.org (gatekeeper-int.allbsd.org [IPv6:2001:2f0:104:e002::2]) by mx1.freebsd.org (Postfix) with ESMTP id 07CFF8FC1B; Fri, 24 Sep 2010 11:30:37 +0000 (UTC) Received: from alph.d.allbsd.org (p2176-ipbf406funabasi.chiba.ocn.ne.jp [124.86.72.176]) (authenticated bits=128) by mail.allbsd.org (8.14.4/8.14.3) with ESMTP id o8OBUGJ1029850; Fri, 24 Sep 2010 20:30:26 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from localhost (localhost [IPv6:::1]) (authenticated bits=0) by alph.d.allbsd.org (8.14.4/8.14.4) with ESMTP id o8OBUFYP020451; Fri, 24 Sep 2010 20:30:16 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Fri, 24 Sep 2010 20:30:05 +0900 (JST) Message-Id: <20100924.203005.87655823.hrs@allbsd.org> To: loki.fab@gmail.com From: Hiroki Sato In-Reply-To: References: <20100924.151429.153301331.hrs@allbsd.org> X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 6.3 on Emacs 23.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart(Fri_Sep_24_20_30_05_2010_038)--" Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.95.3 at gatekeeper.allbsd.org X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.3 (mail.allbsd.org [133.31.130.32]); Fri, 24 Sep 2010 20:30:30 +0900 (JST) X-Spam-Status: No, score=-99.1 required=13.0 tests=AWL,CONTENT_TYPE_PRESENT, RCVD_IN_CHINA, RCVD_IN_CHINA_KR, RCVD_IN_PBL, RCVD_IN_TAIWAN, SPF_SOFTFAIL, USER_IN_WHITELIST,X_MAILER_PRESENT autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on gatekeeper.allbsd.org Cc: freebsd-net@FreeBSD.org, net@FreeBSD.org Subject: Re: Call for testers: RFC 5569 (6rd) support in stf(4) 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: Fri, 24 Sep 2010 11:30:39 -0000 ----Security_Multipart(Fri_Sep_24_20_30_05_2010_038)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Ondoy wrote in : lo> Hello Hiroki, lo> lo> Thanks for your reply. lo> I think I now see how you this is supposed to work. lo> What I didn't (crucially) get first was that the BR IPv4 address is configured lo> at the CE when adding the IPv6 default route. lo> lo> It is simpler to get when 6rdPrefixLen is 32 and IPv4MaskLen is 0. lo> Now I'm trying to figure out how to configure a CE using different lo> parameters (all else the same with your sample setup). lo> lo> For example: lo> IPv4MaskLen = 8 lo> 6rdPrefix = 2001:db8:dd00:: lo> 6rdPrefixLen = 40 lo> 6rdBRIPv4Address = 192.0.2.1 (c0 00 02 01) lo> lo> given: lo> CE WAN IPv4 = 192.0.2.2 (c0 00 02 02) lo> so we'll get: lo> 6rd delegated prefix (at the CE LAN side) = 2001:db8:dd00:0202::/64 lo> lo> To configure the LAN side interface, stf, and route: lo> # ifconfig fxp0 inet6 2001:db8:dd00:0202::1/64 lo> # ifconfig stf0 inet6 2001:db8:dd00:0202::/32 lo> # route add -inet6 default 2001:db8:ddc0:0002:0100::1 lo> Is the above correct, or am I way off target? Ahh, no, the embedded IPv4 address only supports exactly 32-bit length currently. I am working on the shorter case (i.e. 6rdBRIPv4Address cannot be extracted from 6rdPrefix in a simple way), so please wait for the next patch ;) The current implementation is limited to the cases of "0 < 6rdPrefixLen < 32" and BR IPv4 address is embedded in the same way as 6to4. -- Hiroki ----Security_Multipart(Fri_Sep_24_20_30_05_2010_038)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAkyci70ACgkQTyzT2CeTzy39DQCdEdFdYM9gFtVW6tmBoJTN2sVY JqkAoJhtD96TY/KHV/I2YJg6i91oWPU7 =sChq -----END PGP SIGNATURE----- ----Security_Multipart(Fri_Sep_24_20_30_05_2010_038)----