Yes. Windows XP SP2 and later can act as an IPv6 router. (Can't say I would recommend it, but I'm sure your firewall is properly configured, right?)
You just need a /64
-sized IPv6 address range to assign to your LAN. Hurricane Electric assigns one to each tunnel – look for "Routed /64" in the configuration page.
So, assuming your HE tunnel interface is called "he0", and your Ethernet card is called "eth0":
Run netsh
in an elevated Command Prompt. Go to interface ipv6
.
Route your /64 network through your local Ethernet interface, and make sure to publish it:
add route your-prefix/64 "eth0" publish=yes valid=1d preferred=1h
(For example, add route 2001:470:1f0b:123::/64 …
)
The "publish" option means that Win7 will include this route in "Router Advertisement" packets it broadcasts to the LAN. Since it's a /64 prefix, other devices will automatically configure their own IP addresses for it.
The "valid" and "preferred" timers aren't strictly required, they just tell all other devices to forget that IPv6 route if it hasn't been advertised for a day.
Also publish the existing "default" ::/0
route:
set route ::/0 "he0" publish=yes valid=1d preferred=1h
Finally, actually enable the IPv6 routing features.
You must enable packet forwarding on both the "WAN" (tunnel) and LAN interfaces, but router advertisement on the LAN interface only.
set interface "eth0" forwarding=enable advertise=enable
set interface "he0" forwarding=enable
Windows will begin sending "Router Advertisements" on all interfaces that have advertise=enable
. In a few seconds, all devices on your LAN will have generated their own IPv6 addresses based on those advertisements. Go to http://test-ipv6.com/ or http://ipv6-test.com/ and try it out.
If you want to tear it down:
Disable routing: set interface ... forwarding=disable advertise=disable
Delete routes: del route ...
Delete the tunnel: del interface "he0"