EdgeRouter - IPv6 Tunnel

Overview


Readers will learn the how to create an IPv6 tunnel.

IPv6 Tunnels make possible to reach the IPv6 Internet by tunneling over existing IPv4 connections from your IPv6 enabled host or router to one of our IPv6 routers. EdgeOS is compatible with IPv6 addresses and IPv6 Tunnel using SIT. In this tutorial we use Hurricane Electric TunnelBroker service. However, you can use any other IPv6 tunneling service.

Steps


  1. Get a valid IPv6 address; in this case we got a free IPv6 Address from Hurricane Electric, using their free service: www.tunnelbroker.net
  2. Validate your account, and then log in to www.tunnelbroker.net, then Create a Regular Tunnel
  3. Enter your current IPv4 address and select a server (in this case we selected one in Florida, USA). Then click on “Create Tunnel” button. Note: In case you've a dynamic IP address, you will have to update your registered IPv4 address every time it changes, otherwise the tunnel won't work.
  4. After the tunnel is created, you will receive a valid Client IPv6 Address, in this case 2001:470:4:c87::2/64. And a Server IPv4 address, in this case 209.51.161.18
  5. Now log in to your EdgeRouter, and open CLI (located in the Toolbox menu)
  6. Enter your username and password, default credentials are ubnt/ubnt, unless you previously changed your administrator username and password.
  7. Enter the following commands:

 

 

Configure
edit interfaces tunnel tun0
set encapsulation sit
set local-ip 190.22.34.217 
#'''[ENTER YOUR IPv4 ADDRESS HERE'''. In case you’re behind NAT, enter the IP address assigned to your EdgeRouter’s WAN interface, not your public IP]
set remote-ip 209.51.161.18 
set address 2001:470:4:c87::2/64 
#'''[ENTER HERE YOUR ASSIGNED IPv6 address]'''
set description “IPv6 Tunnel”
exit
set protocols static interface-route6 ::/0 next-hop-interface tun0
commit
save
Finally test your IPv6 connectivity using the command ping6, in this case you can ping google.com servers, enter
ping6 www.google.com
Powered by Zendesk