IPv6: HE.net TunnelBroker & OpenWRT
- Domingo Mar 15,2009 10:03 PM
- By admin
- In IPv6
This weekend I’ve implemented IPv6 at home using Hurricane Electric tunnelbroker and OpenWRT, in fact I’ve tried a lot of different firmwares but OpenWrt (whiterussian) ended up being the stable one and it’s really easy to configure.
Why install Ipv6?
All my boxes are already using IPv6 (some native, some tunnels) and since the links are so ‘clean’ I’ve decided to use them
Installing required packages
OpenWRT whiterussian doesn’t have IPv6 nor tunneling support by default, in order to have it you need to install the following packages:
ipkg install kmod-ipv6 kmod-tun kmod-ip6tables ip ip6tables radvd
Setting up
Create a new init script to startup your tunnel
/etc/init.d/S62he
#!/bin/sh
ip tunnel add he-ipv6 mode sit remote SERVER_IPv4_ADDRESS local CLIENT_IPv4_ADDRESS ttl 255
ip link set he-ipv6 up
ip addr add CLIENT_IPV6_ADDRESS/64 dev he-ipv6
ip route add ::/0 dev he-ipv6
ip route add ROUTED_64/64 dev br0
ip -f inet6 addr
Replace the uppercase fields with the values on tunnelbroker.net ‘Tunnel Details’ page
Setting up radvd
(for dynamic ip assignement)
/etc/radvd.conf
interface br0
{
AdvSendAdvert on;
prefix ROUTED_64/64
{
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr on;
};
};
Testing
Reboot your router and wait a 1-2 minutes
Windows
traceroute -6 silviosilva.com
Linux
traceroute6 silviosilva.com
Enjoy!