Ubiquiti Edgerouter – Enabling the LAN with a routed /48 IPv6 prefix

In the last post we had established an IPv6 end-point tunnel between our Ubiquiti Edgerouter and Hurricane Electrics free tunnel broker service. Now that connectivity has been established we need to enable the LAN to support IPv6.

I took the option of enabling the additional /48 routed prefix, this would allow use of the existing /64 as a point-to-point link between Hurricane Electric and the Edgerouter, with the /48 being used for whatever I’d like on the local area network.

On my LAN side, ethernet port 1, I allocated one /64 prefix from my /48:

ethernet eth1 {
address 10.11.12.254/24
address 2001:470:X:1::1/64

Next was to configure the router advertisement protocol to correctly give the additional information required for autoconfiguration to work on the LAN:

 ipv6 {
     router-advert {
         link-mtu 1480
         prefix 2001:470:X:1::/64 {
         }
         send-advert true
     }
 }

Even though our LAN MTU is much higher at 1500, I modified it to 1480 to match what is configured on the tunnel.

I opened a command prompt on my Windows P.C. after comitting those changes, and typed ipconfig /renew then ipconfig to see if my device had been allocated an IPv6 address:

Temporary IPv6 Address. . . . . . : 2001:470:X:1:b46e:eef2:55fc:b622

Perfect! My device is now correctly picking up IPv6 addressing, and can we ping an IPv6 website?

Pinging bbc.co.uk [2a04:4e42::81] with 32 bytes of data:
Reply from 2a04:4e42::81: time=21ms
Reply from 2a04:4e42::81: time=20ms
Reply from 2a04:4e42::81: time=21ms
Reply from 2a04:4e42::81: time=22ms

From the results of the ping above, it looks to be working perfectly fine.

We’ll need to secure the prefix now, since every address is now pubically accessable with no NAT to hide behind! The next post will demonstate on how that will be configured.

Hurricane Electrics IPv6 Tunnel Broker Service

According to their website, Hurricane Electric offer an IPv6 tunnel broker service.

An IPv6 tunnel broker service, allows you to access IPv6 services over a normal IPv4 connection with Hurricane Electric providing you the IPv6 part completely free.

The technical working behind the service is that the IPv6 traffic will be enscapsulated inside the IPv4 traffic between Hurricane Electric and the internet router that it is set up on.

The internet provider I use (TalkTalk Retail) does not support IPv6 on their network so instead of waiting for TalkTalk to enable it, perhaps Hurricane Electrics tunnel broker service is an option instead.

We begin by visiting the Hurricane Electric Tunnel Broker website at https://tunnelbroker.net/ and clicking Register, filling out the details required and verifying our e-mail address via the link sent to it.

After clicking we should automatically logged into the service, let’s begin the set up process by clicking Create Regular Tunnel

The first question on the page is to provide the IPv4 endpoint IP address of the tunnel, this will more than likely be our home IP address which is handily displayed directly below the text box. We can type the same IPv4 address displayed into the box before the page will respond if that IP address can be used as a potentional end point or not.

The second question gives us a list of Tunnel end-points to select. In my opinion select the tunnel server closest geographically.

The final page gives a Tunnel Details confirmation, along with an assigned /64 prefix, if you’d like up to 65536 more networks you can also ask for a /48 prefix!

One of tabs below the header gives Example Configurations, including the an example for the Ubiquti Edgerouter 3 Lite I’ll be using to configure this service:

configure

edit interfaces tunnel tun0

set encapsulation sit

set local-ip 85.x.x.x

set remote-ip 216.66.88.98

set address 2001:470:x:3c6::2/64

set description "HE.NET IPv6 Tunnel"

exit

set protocols static interface-route6 ::/0 next-hop-interface tun0

commit

I made a couple of modifications to the above, I changed my local-ip to be 0.0.0.0 from 85.x.x.x as my IP address is not statically assigned from TalkTalk but rather dynamic. Looking in the advanced tab on the Tunnel Details page it does look to have some options for automatic updating if your IP address did change which can be looked into later.

Once commited, I tried pinging from my Edgerouter (important, as the LAN is not yet enabled for IPv6) to the opposite end of the tunnel which looks to have worked. The Ubiquiti Edgerouter is now IPv6 enabled!

me@home:~$ ping6 2001:470:X:3c6::1
PING 2001:470:1f1c:3c6::1(2001:470:X:3c6::1) 56 data bytes
64 bytes from 2001:470:X:3c6::1: icmp_seq=1 ttl=64 time=18.7 ms
64 bytes from 2001:470:X:3c6::1: icmp_seq=2 ttl=64 time=18.7 ms

Next up we need to enable our LAN to work using IPv6