From owner-freebsd-doc Sat May 18 15:26: 6 2002 Delivered-To: freebsd-doc@freebsd.org Received: from deathkeep.com (adsl-63-206-218-202.dsl.snfc21.pacbell.net [63.206.218.202]) by hub.freebsd.org (Postfix) with ESMTP id EB7FF37B409 for ; Sat, 18 May 2002 15:25:58 -0700 (PDT) Received: from localhost (stigmata@localhost) by deathkeep.com (8.11.6/8.11.6) with ESMTP id g4IMPv614127 for ; Sat, 18 May 2002 15:25:57 -0700 (PDT) (envelope-from stigmata@blackangel.net) Date: Sat, 18 May 2002 15:25:56 -0700 (PDT) From: Gregor Mosheh X-X-Sender: stigmata@osiris.deathkeep.com To: freebsd-doc@freebsd.org Subject: IPv6 Setup HOWTO Message-ID: <20020518152414.F14112-100000@osiris.deathkeep.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 the FreeBSD site, I couldn't find any useful documentation about setting IPv6 routing. We set ours up and I drew up a quick-n-simple primer on how we did it. I hope it's useful to you. If you need me to touch it up in some specific ways and send it to someone else, please let me know. How we set up IPv6 on our LAN. by Stigmata and JoyKill Our situation: Our FreeBSD box will act as a router, and workstations exist on our LAN: Router IPv4 address: 63.206.218.204 Test workstation IPv4 address: 63.206.218.202 Tunnel IPv4 address: 64.71.128.82 We have been given the IPv6 address range 2001:470:1f00:108::/64 We decided (arbitrarily) that our LAN's IPv6 assignments will be: Router: 2001:470:1f00:108::dead:beef Workstation: 2001:470:1f00:108::dead:d00d The remote IPv6 router has address 2001:470:1f00:ffff::10 On our LAN computers, we set these in /etc/rc.conf: ### Our IPv4 setup hostname="osiris.deathkeep.com" ifconfig_vx0="inet 63.206.218.202 netmask 255.255.255.248" defaultrouter="63.206.218.201" ### IPv6 setup ipv6_enable="YES" ipv6_network_interfaces="auto" ipv6_ifconfig_vx0="2001:470:1f00:108::dead:d00d prefixlen 64" ipv6_defaultrouter="2001:470:1f00:108::dead:beef" ipv6_gateway_enable="NO" On the router, we set these variables in /etc/rc.conf: ### Our IPv4 setup hostname="valkyrie.deathkeep.com" ifconfig_rl0="inet 63.206.218.204 netmask 255.255.255.248" defaultrouter="63.206.218.201" ### IPv6 setup ipv6_enable="YES" ipv6_network_interfaces="auto" ipv6_ifconfig_rl0="2001:470:1f00:108::dead:beef prefixlen 64" ### IPv6 routing setup # configure our tunnel (WAN) interface gif_interfaces="gif0" gifconfig_gif0="63.206.218.204 64.71.128.82" ipv6_ifconfig_gif0="2001:470:1f00:ffff::11 2001:470:1f00:ffff::10 prefixlen 128" # set the default routes for IPv6 traffic, and enable routing/forwarding ipv6_default_interface="gif0" ipv6_defaultrouter="2001:470:1f00:ffff::10" ipv6_gateway_enable="YES" Now reboot to each machine, and IPv6 should work on both machines. In our situation, you'll notice that the subnets are quite similar. That's because we have a very small block of IPv4 addresses and only one Ethernet card on the router. This setup is not optimal, because IPv6 traffic is "double transited" - IPv4 traffic on Orisis goes out through 63.206.218.201 directly, but IPv6 traffic goes to valkyrie first, and then back via the same cable to the tunnel. Still, the setup here works for experimental purposes and works well for light-load networks. The procedure for setting up a second interface on the router and doing "true routing" will be exremely similarto what we've described. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message