IPv6 over IPv4
IPv6 over IPv4 is accomplished by 'tunneling' your connection through a tunnel broker.
After you've set up an account and have your tunnel specifics, you'll have to set up the tunnel on your own end.
Contents |
Windows
Run the following commands via an administrator console:
netsh Can also be used within Winxp for ipv6 configurations.
Windows 2000/XP:
ipv6 install ipv6 rtu ::/0 2/::<tunnel server's IPv4 address> pub ipv6 adu 2/<your assigned IPv6 address>
Windows 2008/Vista:
netsh interface ipv6 add v6v4tunnel IP6Tunnel <your own IPv4 address> <tunnel server's IPv4 address> netsh interface ipv6 add address IP6Tunnel <your assigned IPv6 address> netsh interface ipv6 add route ::/0 IP6Tunnel <tunnel server's IPv6 address>
Linux
Run the following commands via a root prompt:
Using ip:
modprobe ipv6 ip tunnel add he-ipv6 mode sit remote <tunnel server's IPv4 address> local <your own IPv4 address> ttl 255 ip link set he-ipv6 up ip addr add <your assigned IPv6 address> dev he-ipv6 ip route add ::/0 dev he-ipv6
You add more IPs with your ipv6 prefix as shown below, and with the correct reverse dns you can connect to IRC (or any other internet service) with almost any hostname.
ip addr add <your assigned IPv6 prefix>::2/128 dev lo ip addr add <your assigned IPv6 prefix>::3/128 dev lo
To set up a tunnel via Tunnelbroker (Hurricane Electric) using this method, see the Tunnelbroker page.
Using ifconfig (deprecated):
ifconfig sit0 up ifconfig sit0 inet6 tunnel ::<tunnel server's IPv4 address> ifconfig sit1 up ifconfig sit1 inet6 add <your assigned IPv6 address> route -A inet6 add ::/0 dev sit1
BSD / OS X
Run the following commands via a root prompt:
FreeBSD:
ifconfig gif0 create ifconfig gif0 tunnel <your own IPv4 address> <tunnel server's IPv4 address> ifconfig gif0 inet6 <your assigned IPv6 address> <tunnel server's IPv6 address> prefixlen 128 route -n add -inet6 default <tunnel server's IPv6 address> ifconfig gif0 up
OpenBSD:
ifconfig gif0 tunnel <your own IPv4 address> <tunnel server's IPv4 address> ifconfig gif0 inet6 alias <your assigned IPv6 address> <tunnel server's IPv6 address> prefixlen 128 route -n add -inet6 default <tunnel server's IPv6 address>
NetBSD & MacOS X:
ifconfig gif0 tunnel <your own IPv4 address> <tunnel server's IPv4 address> ifconfig gif0 inet6 <your assigned IPv6 address> <tunnel server's IPv6 address> prefixlen /128> route -n add -inet6 default <tunnel server's IPv6 address>
Solaris:
ifconfig ip.tun0 inet6 plumb ifconfig ip.tun0 inet6 tsrc <your own IPv4 address> <tunnel server's IPv4 address> up ifconfig ip.tun0 inet6 addif <your assigned IPv6 address> <tunnel server's IPv6 address> up route add -inet6 default <tunnel server's IPv6 address>
Radvd:
interface eth0
{
AdvSendAdvert on;
prefix <your assigned IPv6 address>/64
{
AdvOnLink on;
AdvAutonomous on;
};
};
The radvd.conf file will be saved in the /etc folder.
This will allow all machines on your network to be assigned with ipv6 addresses." sysctl -w net.ipv6.conf.all.forwarding=1 " will do the fowarding of the address to all machines and " /etc/init.d/radvd restart " will make the services bounces.