From owner-freebsd-doc Mon Apr 8 2: 4: 0 2002 Delivered-To: freebsd-doc@freebsd.org Received: from meta.lo-res.org (meta.lo-res.org [195.58.189.92]) by hub.freebsd.org (Postfix) with ESMTP id 0BD9037B417 for ; Mon, 8 Apr 2002 02:03:56 -0700 (PDT) Received: from there (chillig.lo-res.org [62.116.8.4]) by meta.lo-res.org (8.12.2/8.12.2) with SMTP id g3893qRe008221; Mon, 8 Apr 2002 11:03:53 +0200 (CEST) (envelope-from aaron@lo-res.org) Message-Id: <200204080903.g3893qRe008221@meta.lo-res.org> Content-Type: text/plain; charset="iso-8859-15" From: aaron To: Nick Sayer , freebsd-doc@FreeBSD.ORG Subject: Re: suggestion: handbook 17.14: Basic IPv6 setup using 6to4 Date: Mon, 8 Apr 2002 11:03:52 +0200 X-Mailer: KMail [version 1.3.2] References: <3CB0FB94.3060308@quack.kfu.com> In-Reply-To: <3CB0FB94.3060308@quack.kfu.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Monday 08 April 2002 04:08, Nick Sayer wrote: Hi nick! Hi list! I have been working (as time permitted) on the IPv6 chapter. How about mergeing our texts? I have a IPv6 primer more or less ready. So in other words: would it be ok for you If I included your 6to4 section? This would give us (in total) the following sections: * intro to IPv6 & brief history * Background on IPv6 addresses * How to connect to the 6bone * How to connect via 6to4 * How to connect via freent6 * DNS in IPv6 - still missing a section on mobileIP + IPv6 (is this working?) I could finish it by today evening (local time :) greetings, aaron. > I nominate this block of text: > > > Anyone with a single static IPv4 address can set up a machine to act as > an IPv6 router using 6to4. With such a setup, it is possible for up to > 65,536 networks of 2^64 machines to be given globally reachable IPv6 > addresses reached through such a gateway. All one needs to do is add a > few short lines to rc.conf. > > [insert a short primer on IPv6 here] > > 6to4 is a special transition mechanism to make it easier for isolated > LANs running IPv6 to be able to reach each other. All users of 6to4 can > communicate with each other without doing anything special other than > setting up a 6to4 router at each location. 6to4 works by making special > "magic" IPv6 prefixes. These prefixes consist of a 16 bit constant, > which is 2002::/16 followed by the 32 bit IPv4 address of the 6to4 > router for that node. By including that in the prefix, it is immediately > clear how to route the replies back to their origin - you simply > encapsulate the replies in IPv4 packets addressed to the IPv4 address in > the prefix. For example, if a network had a 6to4 router at 10.0.0.1 (it > wouldn't, since that address is not routable on IPv4, but bear with me), > then its coresponding 6to4 prefix would be 2002:a00:1::/48. If it had a > host at 2002:a00:1::1, then traffic addressed to that machine would be > encapsulated in packets addressed to 10.0.0.1, which would get them to > the 6to4 router. Q.E.D. > > The one wrinkle is that 6to4 does not describe how 6to4 equipped hosts > can reach non-6to4 IPv6 destinations. Fortunately, RFC 3068 addresses > this. To make a long story short, 6to4 nodes need only set their default > route to the special address 2002:c058:6301:: and the traffic will get > to any globally routable IPv6 address regardless of whether or not it is > in 6to4 space. > > On the machine designated as the 6to4 router, you will need to set up > stf0, which will be the interface used to send out the IPv6-in-IPv4 > encapsulated packets. You'll need to add the following to your kernel > configuration file, if it's not already there: > > options > INET6 > pseudo-device > stf > 1 > > Having done that, you can add the following lines to your rc.conf file: > > ipv6_enable="YES" > ipv6_network_interfaces="auto" > ipv6_gateway_enable="YES" > ipv6_prefix_nn0="2002:xxxx:xxxx:0" > # see below > stf_interface_ipv4addr="xxx.xxx.xxx.xxx" > # Put your IPv4 address here > ipv6_defaultrouter="2002:c058:6301::" > > The ipv6_prefix line should have "nn0" changed to the name of your > Ethernet card (additional lines can be added if you are serving multiple > networks). The xxxx:xxxx should be changed to the hexidecimal > representation of the same IPv4 address that is in the > stf_interface_ipv4addr line. > > Having done that (and rebooted), you should find that you can reach IPv6 > hosts from the 6to4 router. > > If you have hosts connected to the LAN which you'd like to use IPv6 as > well, your next step is to configure them. This is easier. Put this in > rc.conf: > > ipv6_enable="YES" > > That's all (well, they will also need "options INET6" in their kernel > config). They will use IPv6 router discovery to find the 6to4 router and > get all the information they need. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-doc" in the body of the message -- If time heals all wounds, how come the belly button stays the same? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message