Hurricane Electric IPv6 Tunnel with EdgeOSSunday, Feb 7, 2016 · 300 words · approx 2 mins to read
I wrote yesterday about my new home network setup, using an Ubiquiti EdgeRouter X as the router. I’ve wanted working IPv6 at home for years now, but have never been able to make it reliable. Virginmedia don’t natively support IPv6 and their Superhubs don’t support tunnels. I’ve had other routers that did support tunnels, but buggy firmware stopped me from enabling them full-time. I’m not a fan of per-client tunnelling either.
I decided to give it another go using the EdgeRouter X, which runs EdgeOS. EdgeOS supports all of the moving parts needed: IPv6 (duh!), being able to setup arbitrary tunnel interfaces, and supporting nice-to-have infrastructure to help configure clients, like radvd for Router Advertisement message support.
I chose Hurricane Electric (HE.net) as my IPv6 tunnel broker. HE.net give you a routed IPv6 address for your tunnel, and a routed /64 IPv6 prefix to use on your network. I have the EdgeRouter X configured so that eth0 is the WAN interface connected to my modem, and eth1-eth4 are ports on a virtual LAN switch called switch0.
If you have a similar setup to me, where you have an interface you can call your LAN, remember to assign your routed prefix to the LAN interface. HE.net use very similar addressing for each, so be very careful assigning the routed prefix to your LAN interface. I spent a couple of hours wondering why I could do IPv6 things on the EdgeRouter X OK, after setting up the tunnel and the IPv6 default route, but nothing on my clients; I’d set the client IPv6 address on the switch interface by mistake.
I mostly followed this guide on One Bad Pixel. Here are my eventual applied set of commands on the EdgeRouter X CLI.