IPv6 Tunnel

From Tomp Online Wiki

Jump to: navigation, search

Contents

Introduction

With the ever decreasing availability of IPv4 addresses, I decided to investigate the new Internet Protocol, IPv6.

This is how I configured an IPv6 tunnel to he.net http://www.tunnelbroker.net who provide free connectivity to the IPv6 Internet.

This guide uses CentOS 5.

Enable IPv6

Modify /etc/sysconfig/network

NETWORKING_IPV6=yes
IPV6_ROUTER=yes
IPV6FORWARDING=yes
IPV6_AUTOCONF=yes
IPV6_DEFAULTDEV=sit1
IPV6_AUTOTUNNEL=no

Create /etc/sysconfig/network-scripts/ifcfg-sit1

# Hurricane Electric V6V4 tunnel
NAME="Hurricane Electric SIT"
DEVICE=sit1
ONBOOT=yes
USERCTL=no
BOOTPROTO=none
PEERDNS=no

IPV6INIT=yes
IPV6ADDR="Your IPv6 subnet address"
IPV6TUNNELIPV4="HE.net tunnel IPv4 address"
IPV6TUNNELIPV4LOCAL="Your local servers IPv4 address"

TYPE=sit
DEVICETYPE=sit
PHYSDEV=eth0
IPV6_AUTOCONF=no

Routing Your Subnet

IPv6 provides route advertisements to allow devices on your internal network to be auto-configured with an IPv6 address.

To enable this, install the radvd package, and create /etc/radvd.conf

interface eth0 {
       MinRtrAdvInterval 10;
       MaxRtrAdvInterval 50;
  AdvSendAdvert on;
  prefix Your_IPv6_subnet_address {
   AdvOnLink on;
   AdvAutonomous on;
  };
};

Google on IPv6

Now that should all be working, test it with:

ping6 ipv6.google.com

And now your can set your homepage to:

http://ipv6.google.com
Personal tools