Table of Contents

IPv6 in Linux

IPv4-IPv6 Tunnels

HE IPv6 Tunnel Broker http://tunnelbroker.net/

/etc/network/interfaces

auto he6to4
iface he6to4 inet6 v4tunnel
  address xxx:yyy:uuu:zzz::2
  netmask 64
  gateway xxx:yyy:uuu:zzz::1
  endpoint 216.66.84.46
  local A.B.C.D      # needed if you have multiple external Interfaces
  ttl 64             # needed because of a tunneling situation

SIXXS Tunnel Broker http://www.sixxs.net FIXME

Basic configuration (Debian/ubuntu)

/etc/network/interfaces

auto ethX
iface ethX inet6 static
   address xxxx:yyyy:uuuu:::1
   netmask 64

/etc/sysctl.conf

net.ipv6.conf.default.forwarding=1

Basic configuration (RHEL/Fedora/CentOS)

f /etc/sysconfig/network

NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=linux

f /etc/sysconfig/network-scripts/ifcfg-eth0

IPV6INIT=yes
IPV6ADDR=<IPv6-IP-Address>
IPV6_DEFAULTGW=<IPv6-IP-Gateway-Address>

Save and close the file. Restart networking:

 # service network restart

Router adv

Router side

/etc/radvd.conf

interface eth0
{
        AdvSendAdvert on;
        IgnoreIfMissing on;
        MinRtrAdvInterval 3;
        MaxRtrAdvInterval 30;
        AdvDefaultPreference low;
        AdvHomeAgentFlag off;
        AdvManagedFlag  on;
#       AdvOtherConfigFlag on;

        prefix 2001:15c0:1000:1036::/64
        {
                AdvOnLink on;
                AdvAutonomous off;
                AdvRouterAddr off;
        };
        RDNSS 2001:15c0:1000:1036::1 2001:15c0:ffff:f::12
        {
                AdvRDNSSPreference 8;
                AdvRDNSSOpen off;
        };
};


Router dibbler dhcpv6

Router side

/etc/dibbler/server.conf


 log-level 1
 log-mode short
 preference 0

 iface eth1 {
 option dns-server 2001:15c0:ffff:f::12,2001:15c0:1000:1036::1
 option domain net.lan
 option time-zone  CET
 option lifetime 500
 t1 1800-2000
 t2 2700-3000
 prefered-lifetime 3600
 valid-lifetime 7200

 class {
   pool 2001:15c0:1000:1036::1/64
 }

}