IPv6-in-IPv4

From OpenVZ Virtuozzo Containers Wiki
Revision as of 17:47, 7 August 2008 by Sspt (talk | contribs) (Tunnelbroker - IPv6-in-IPv4)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Tunnelbroker - IPv6-in-IPv4

Turn on ipv6 forwarding

/etc/sysctl.conf

net.ipv6.conf.all.forwarding = 1

Apply sysctl.conf changes

/sbin/sysctl -p

Turn on autotunnel

/etc/sysconfig/network

IPV6_AUTOTUNNEL=yes

Configure sit1 interface

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

DEVICE=sit1
BOOTPROTO=none
ONBOOT=yes
IPV6INIT=yes
IPV6TUNNELIPV4= Server_IPv4_address
IPV6TUNNELIPV4LOCAL=Client_IPv4_address    # You'll need to specify your client IP if you've multiple NICs
IPV6ADDR=Client_IPv6_address

Create a static route for inet6

/etc/sysconfig/static-routes-ipv6

sit1    2000::/3        Server_IPv6_address
sit1    ::/0        Server_IPv6_address

(2000::/3 or ::/0 will depend on your kernel, add both and everything will work just fine)

Restart network

/etc/init.d/network restart
    • How-to created with help of tunnelbroker.net **