IPv6 (tutorial)

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 02:09, 24 November 2005 (edit)
Tokachu (Talk | contribs)
m (Introduction)
← Previous diff
Revision as of 05:28, 6 December 2005 (edit) (undo)
Node (Talk | contribs)

Next diff →
Line 5: Line 5:
There are too many devices in the world for 32-bit (2<sup>32</sup>, or 4,294,967,296) IP addresses to be sufficient. The next version of the TCP/IP protocol, IPv6 offers 128-bit address space, or 2<sup>128</sup> (&asymp; 3.4 x 10<sup>38</sup>) IP addresses. There are too many devices in the world for 32-bit (2<sup>32</sup>, or 4,294,967,296) IP addresses to be sufficient. The next version of the TCP/IP protocol, IPv6 offers 128-bit address space, or 2<sup>128</sup> (&asymp; 3.4 x 10<sup>38</sup>) IP addresses.
-IPv6 is supported from DD-WRTv22 prefinal5.+IPv6 is supported since DD-WRTv22 prefinal5.
=Setup= =Setup=
==Prerequisits== ==Prerequisits==
--Knowledge about [[Telnet/SSH and the Command Line|The DD-WRT Command Line]]<br>+- Knowledge about the [[Telnet/SSH and the Command Line|Command Line]]<br>
--Knowledge about the [[ip command]]<br>+- Knowledge about the [[ip command]]<br>
 +- 24/7 Internet Connection (dynamic dialup is ok)<br>
 +- Enabled [[jffs]] would be helpful<br>
 +- Enable IPv6 at your routers webinterface
==Instructions== ==Instructions==
-The sconk.se guide offers some pretty nice instructions on how enable this feature starting out with obtaining an IPv6 address.+===Requesting a Tunnel/Subnet (SixXS)===
-<br>+1. Create a 6bone handle at http://www.sixxs.net/signup/6bone/. (Skip this if you already have a NIC handle.)<br>
-If you want to use Hurricane Electric's IPv6 Tunnel broker you can check out the guide below. It has detailed instructions and is upto date. Sixx.net takes alot of work and requires you to sign up to alot more stuff then Hurricane Electric.+2. Sign up at http://www.sixxs.net/signup/ with your create handle. (Or use your existing one.)<br>
 +3. After your login at http://www.sixxs.net/home/ you can request a tunnel and later a subnet.
 + 
 +===Static Tunnel (SixXS)===
 +The [http://sconk.se/dd-wrt_ipv6_guide/ sconk.se guide] offers some pretty nice instructions on how enable this feature starting out with obtaining an IPv6 address.<br>
This wiki also offers an example [[IPv6 startup script]] This wiki also offers an example [[IPv6 startup script]]
 +
 +--Is it possible to copy'n'paste this guide into this wiki? --
 +
 +===Dynamic Tunnel (SixXS)===
 +====Install AICCU====
 +1. Install AICCU using ipkg.
 + # ipkg update
 + # ipkg install aiccu
 +2. Configure AICCU.
 + # vi /jffs/etc/aiccu.conf
 +
 + # AICCU Configuration
 +
 + # Login information
 + username <your nichandle/username>
 + password <your password>
 +
 + # Interface names to use
 + ipv4_interface vlan1
 + ipv6_interface sixxs
 +
 + # The tunnel_id to use
 + # (only required when there are multiple tunnels in the list)
 + tunnel_id <your tunnel id>
 +
 + # Be verbose?
 + verbose false
 +
 + # Daemonize?
 + daemonize true
 +
 + # Automatic?
 + automatic true
 +====Automatic start your Tunnel====
 +1. Create a .startup file and make it executable.
 + # vi /jffs/etc/config/aiccu.startup
 +
 + #!/bin/sh
 +
 + /jffs/etc/init.d/S51aiccu start
 + ip -6 addr add 2001:xxxx:xxx::/64 dev br0 # Edit to your assigned subnet settings. (You have to use /64 here)
 +
 + # chmod +x /jffs/etc/config/aiccu.startup
 +
 +2. Adjust the AICCU init script.
 + # vi /jffs/etc/init.d/S51aiccu
 +
 + #!/bin/sh
 +
 + case "$1" in
 + start)
 + ( while [ `date +%Y` -eq 1970 ]; do
 + sleep 1
 + done && /jffs/usr/sbin/aiccu start /jffs/etc/aiccu.conf ) &
 + ;;
 +
 + stop)
 + aiccu stop /jffs/etc/aiccu.conf
 + aiccu stop /jffs/etc/aiccu.conf
 + ;;
 +
 + restart)
 + $0 stop
 + $0 start
 + ;;
 + *)
 + echo "Usage: $0 {start|stop|restart}"
 + exit 1
 + ;;
 + esac
 +====Announce your Subnet with radvd====
 +1. Enable radvd at the webinterface of your router (Administration->Management->IPv6 Support)
 +2. Insert your radvd.conf into the form and save your settings. (You have use the /64 prefix even if you got a /48 subnet)
 + interface br0
 + {
 + AdvSendAdvert on;
 + prefix 2001:xxxx:xxxx::/64
 + {
 + AdvOnLink on;
 + AdvAutonomous on;
 + AdvRouterAddr on;
 + };
 + };
 +
 +=Notes=
 +If you want to disable temporary IPv6 addresses at your WinXP try:
 + cmd> ipv6 -p gpu UseTemporaryAddresses no
 +
 +
=External Links= =External Links=
-http://sconk.se/dd-wrt_ipv6_guide/ <br>+[http://en.wikipedia.org/wiki/Ipv6 IPv6 at Wikipedia]<br>
-http://en.wikipedia.org/wiki/Ipv6<br>+[http://www.sixxs.net/faq/account/?faq=10steps Setting up ipv6 using SixXS Tunnel Broker]<br>
-[http://www.sixxs.net/faq/account/?faq=10steps 10 easy steps to IPv6]<br>+[http://www.solosoft.org/projects/ipv6/ Setting up ipv6 using Hurricane Electric's Tunnel Broker]<br>
-[http://www.solosoft.org/projects/ipv6/ Setting up ipv6 using Hurricane Electric's Tunnel Broker]+[http://www.ipv6.org/ IPv6 Information Page]<br>
-<br>+
---- ----
'''You are here: ''' '''[[Main Page]]'''/'''[[DD-WRT Docu (EN)]]'''/'''[[IPv6]]''' '''You are here: ''' '''[[Main Page]]'''/'''[[DD-WRT Docu (EN)]]'''/'''[[IPv6]]'''

Revision as of 05:28, 6 December 2005

You are here: Main Page/DD-WRT Docu (EN)/IPv6


Contents

Introduction

There are too many devices in the world for 32-bit (232, or 4,294,967,296) IP addresses to be sufficient. The next version of the TCP/IP protocol, IPv6 offers 128-bit address space, or 2128 (≈ 3.4 x 1038) IP addresses.

IPv6 is supported since DD-WRTv22 prefinal5.

Setup

Prerequisits

- Knowledge about the Command Line
- Knowledge about the ip command
- 24/7 Internet Connection (dynamic dialup is ok)
- Enabled jffs would be helpful
- Enable IPv6 at your routers webinterface

Instructions

Requesting a Tunnel/Subnet (SixXS)

1. Create a 6bone handle at http://www.sixxs.net/signup/6bone/. (Skip this if you already have a NIC handle.)
2. Sign up at http://www.sixxs.net/signup/ with your create handle. (Or use your existing one.)
3. After your login at http://www.sixxs.net/home/ you can request a tunnel and later a subnet.

Static Tunnel (SixXS)

The sconk.se guide offers some pretty nice instructions on how enable this feature starting out with obtaining an IPv6 address.

This wiki also offers an example IPv6 startup script

--Is it possible to copy'n'paste this guide into this wiki? --

Dynamic Tunnel (SixXS)

Install AICCU

1. Install AICCU using ipkg.

 # ipkg update
 # ipkg install aiccu

2. Configure AICCU.

 # vi /jffs/etc/aiccu.conf
 # AICCU Configuration
 
 # Login information
 username <your nichandle/username>
 password <your password>
 
 # Interface names to use
 ipv4_interface vlan1
 ipv6_interface sixxs
 
 # The tunnel_id to use
 # (only required when there are multiple tunnels in the list)
 tunnel_id <your tunnel id>
 
 # Be verbose?
 verbose false
 
 # Daemonize?
 daemonize true
 
 # Automatic?
 automatic true

Automatic start your Tunnel

1. Create a .startup file and make it executable.

 # vi /jffs/etc/config/aiccu.startup
 #!/bin/sh
 
 /jffs/etc/init.d/S51aiccu start
 ip -6 addr add 2001:xxxx:xxx::/64 dev br0 # Edit to your assigned subnet settings. (You have to use /64 here)
 # chmod +x /jffs/etc/config/aiccu.startup

2. Adjust the AICCU init script.

 # vi /jffs/etc/init.d/S51aiccu
 #!/bin/sh
 
 case "$1" in
     start)
         ( while [ `date +%Y` -eq 1970 ]; do
             sleep 1
             done && /jffs/usr/sbin/aiccu start /jffs/etc/aiccu.conf ) &
         ;;
 
     stop)
         aiccu stop /jffs/etc/aiccu.conf
         aiccu stop /jffs/etc/aiccu.conf
         ;;
 
     restart)
         $0 stop
         $0 start
         ;;
     *)
         echo "Usage: $0 {start|stop|restart}"
         exit 1
         ;;
 esac

Announce your Subnet with radvd

1. Enable radvd at the webinterface of your router (Administration->Management->IPv6 Support) 2. Insert your radvd.conf into the form and save your settings. (You have use the /64 prefix even if you got a /48 subnet)

 interface br0
 {
 AdvSendAdvert on;
 prefix 2001:xxxx:xxxx::/64
 {
 AdvOnLink on;
 AdvAutonomous on;
 AdvRouterAddr on;
 };
 };

Notes

If you want to disable temporary IPv6 addresses at your WinXP try:

 cmd> ipv6 -p gpu UseTemporaryAddresses no


External Links

IPv6 at Wikipedia
Setting up ipv6 using SixXS Tunnel Broker
Setting up ipv6 using Hurricane Electric's Tunnel Broker
IPv6 Information Page


You are here: Main Page/DD-WRT Docu (EN)/IPv6