Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 May 2002 15:25:56 -0700 (PDT)
From:      Gregor Mosheh <stigmata@blackangel.net>
To:        freebsd-doc@freebsd.org
Subject:   IPv6 Setup HOWTO
Message-ID:  <20020518152414.F14112-100000@osiris.deathkeep.com>

next in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020518152414.F14112-100000>