Date: Fri, 24 Sep 2010 20:30:05 +0900 (JST) From: Hiroki Sato <hrs@FreeBSD.org> To: loki.fab@gmail.com Cc: freebsd-net@FreeBSD.org, net@FreeBSD.org Subject: Re: Call for testers: RFC 5569 (6rd) support in stf(4) Message-ID: <20100924.203005.87655823.hrs@allbsd.org> In-Reply-To: <AANLkTiko-wzTDMcLXw8OQokizzEiwwDsDpP1yP94yKJC@mail.gmail.com> References: <AANLkTik5amD6Sr5CEhyVu1fnbMvkevqZQ%2BFGW5ZPcNAa@mail.gmail.com> <20100924.151429.153301331.hrs@allbsd.org> <AANLkTiko-wzTDMcLXw8OQokizzEiwwDsDpP1yP94yKJC@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
----Security_Multipart(Fri_Sep_24_20_30_05_2010_038)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Ondoy <loki.fab@gmail.com> wrote in <AANLkTiko-wzTDMcLXw8OQokizzEiwwDsDpP1yP94yKJC@mail.gmail.com>: 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)----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100924.203005.87655823.hrs>