http://forum.dd-wrt.com/wiki/index.php?title=IPv6_%28tutorial%29&action=history&feed=atomIPv6 (tutorial) - Revision history2024-03-28T13:20:40ZRevision history for this page on the wikiMediaWiki 1.10.1http://forum.dd-wrt.com/wiki/index.php?title=IPv6_%28tutorial%29&diff=56195&oldid=prevBib: m² speak more than grams of Earth2022-01-19T20:43:05Z<p>m² speak more than grams of Earth</p>
<table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;">
<tr>
<td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td>
<td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 20:43, 19 January 2022</td>
</tr>
<tr><td colspan="2" align="left"><strong>Line 3:</strong></td>
<td colspan="2" align="left"><strong>Line 3:</strong></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">'''Internet Protocol version 6''' ('''IPv6''') is a network layer IP standard used by electronic devices to exchange data across a packet-switched network. It follows IPv4 as the second version of the Internet Protocol to be formally adopted for general use. </td><td> </td><td style="background: #eee; font-size: smaller;">'''Internet Protocol version 6''' ('''IPv6''') is a network layer IP standard used by electronic devices to exchange data across a packet-switched network. It follows IPv4 as the second version of the Internet Protocol to be formally adopted for general use. </td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr>
<tr><td>-</td><td style="background: #ffa; font-size: smaller;">[http://www.potaroo.net/tools/ipv4/ 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].<br> 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; this is approximately 5×10<sup>28</sup> addresses for each of the roughly 6.5 billion people alive today, or about 57 billion addresses for each gram of matter in the Earth.<br><br></td><td>+</td><td style="background: #cfc; font-size: smaller;">[http://www.potaroo.net/tools/ipv4/ 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].<br> 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; this is approximately 5×10<sup>28</sup> addresses for each of the roughly 6.5 billion people alive today, or about 57 billion addresses for each gram of matter in the Earth<ins style="color: red; font-weight: bold; text-decoration: none;">, or 6.67*10<sup>23</sup> addresses for each m² of Earth, including oceans</ins>.<br><br></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">Keep in mind it can be dangerous to enable IPv6 without also having a firewall on each client that '''handles IPv6 packets''', or having ip6tables on your router to filter incoming connections. ip6tables is NOT included by default with DD-WRT, which means your clients will be directly exposed to the Internet once you have enabled IPv6.</td><td> </td><td style="background: #eee; font-size: smaller;">Keep in mind it can be dangerous to enable IPv6 without also having a firewall on each client that '''handles IPv6 packets''', or having ip6tables on your router to filter incoming connections. ip6tables is NOT included by default with DD-WRT, which means your clients will be directly exposed to the Internet once you have enabled IPv6.</td></tr>
</table>Bibhttp://forum.dd-wrt.com/wiki/index.php?title=IPv6_%28tutorial%29&diff=53966&oldid=prevIan5142: Removed Advanced tutorials2018-03-18T18:45:19Z<p>Removed Advanced tutorials</p>
<table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;">
<tr>
<td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td>
<td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 18:45, 18 March 2018</td>
</tr>
<tr><td colspan="2" align="left"><strong>Line 741:</strong></td>
<td colspan="2" align="left"><strong>Line 741:</strong></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">*[http://prasys.spymac.com/page12/page12.html Setting up ipv6 using MyBSD/MANISV6 on DD-WRT v23]</td><td> </td><td style="background: #eee; font-size: smaller;">*[http://prasys.spymac.com/page12/page12.html Setting up ipv6 using MyBSD/MANISV6 on DD-WRT v23]</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr>
<tr><td>-</td><td style="background: #ffa; font-size: smaller;">[[Category:IPv6<del style="color: red; font-weight: bold; text-decoration: none;">| ]]</del></td><td>+</td><td style="background: #cfc; font-size: smaller;">[[Category:IPv6]]</td></tr>
<tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;">[[Category:Advanced tutorials</del>]]</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr>
</table>Ian5142http://forum.dd-wrt.com/wiki/index.php?title=IPv6_%28tutorial%29&diff=53960&oldid=prevIan5142: Added Languages2018-03-18T18:41:41Z<p>Added Languages</p>
<table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;">
<tr>
<td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td>
<td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 18:41, 18 March 2018</td>
</tr>
<tr><td colspan="2" align="left"><strong>Line 1:</strong></td>
<td colspan="2" align="left"><strong>Line 1:</strong></td></tr>
<tr><td>-</td><td style="background: #ffa; font-size: smaller;">'''Internet Protocol version 6''' ('''IPv6''') is a network layer IP standard used by electronic devices to exchange data across a packet-switched <del style="color: red; font-weight: bold; text-decoration: none;">internetwork</del>. It follows IPv4 as the second version of the Internet Protocol to be formally adopted for general use. </td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">{{Languages|:IPv6 (tutorial)}}</ins></td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;"> </td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;">'''Internet Protocol version 6''' ('''IPv6''') is a network layer IP standard used by electronic devices to exchange data across a packet-switched <ins style="color: red; font-weight: bold; text-decoration: none;">network</ins>. It follows IPv4 as the second version of the Internet Protocol to be formally adopted for general use. </td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">[http://www.potaroo.net/tools/ipv4/ 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].<br> 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; this is approximately 5×10<sup>28</sup> addresses for each of the roughly 6.5 billion people alive today, or about 57 billion addresses for each gram of matter in the Earth.<br><br></td><td> </td><td style="background: #eee; font-size: smaller;">[http://www.potaroo.net/tools/ipv4/ 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].<br> 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; this is approximately 5×10<sup>28</sup> addresses for each of the roughly 6.5 billion people alive today, or about 57 billion addresses for each gram of matter in the Earth.<br><br></td></tr>
<tr><td colspan="2" align="left"><strong>Line 5:</strong></td>
<td colspan="2" align="left"><strong>Line 7:</strong></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">Keep in mind it can be dangerous to enable IPv6 without also having a firewall on each client that '''handles IPv6 packets''', or having ip6tables on your router to filter incoming connections. ip6tables is NOT included by default with DD-WRT, which means your clients will be directly exposed to the Internet once you have enabled IPv6.</td><td> </td><td style="background: #eee; font-size: smaller;">Keep in mind it can be dangerous to enable IPv6 without also having a firewall on each client that '''handles IPv6 packets''', or having ip6tables on your router to filter incoming connections. ip6tables is NOT included by default with DD-WRT, which means your clients will be directly exposed to the Internet once you have enabled IPv6.</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"><br><br></td><td> </td><td style="background: #eee; font-size: smaller;"><br><br></td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">=Prerequisites=</td><td> </td><td style="background: #eee; font-size: smaller;">=Prerequisites=</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">* [[Supported Devices|DD-WRT compatible router]]</td><td> </td><td style="background: #eee; font-size: smaller;">* [[Supported Devices|DD-WRT compatible router]]</td></tr>
</table>Ian5142http://forum.dd-wrt.com/wiki/index.php?title=IPv6_%28tutorial%29&diff=44385&oldid=prevSash: /* Another approach */2013-01-28T11:58:16Z<p><span class="autocomment">Another approach</span></p>
<table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;">
<tr>
<td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td>
<td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 11:58, 28 January 2013</td>
</tr>
<tr><td colspan="2" align="left"><strong>Line 519:</strong></td>
<td colspan="2" align="left"><strong>Line 519:</strong></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">echo >> /tmp/wanip</td><td> </td><td style="background: #eee; font-size: smaller;">echo >> /tmp/wanip</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">WANIP_OLD=`cat /tmp/wanip`</td><td> </td><td style="background: #eee; font-size: smaller;">WANIP_OLD=`cat /tmp/wanip`</td></tr>
<tr><td>-</td><td style="background: #ffa; font-size: smaller;">WANIP=$(<del style="color: red; font-weight: bold; text-decoration: none;">ip -4 addr show dev </del>vlan2 | <del style="color: red; font-weight: bold; text-decoration: none;">grep </del>'inet <del style="color: red; font-weight: bold; text-decoration: none;">' | awk '</del>{<del style="color: red; font-weight: bold; text-decoration: none;">print $2</del>}' <del style="color: red; font-weight: bold; text-decoration: none;">| cut -d/ -f1</del>)</td><td>+</td><td style="background: #cfc; font-size: smaller;">WANIP=<ins style="color: red; font-weight: bold; text-decoration: none;">"</ins>$(<ins style="color: red; font-weight: bold; text-decoration: none;">ifconfig </ins>vlan2 | <ins style="color: red; font-weight: bold; text-decoration: none;">sed -n </ins>'<ins style="color: red; font-weight: bold; text-decoration: none;">/</ins>inet <ins style="color: red; font-weight: bold; text-decoration: none;">/</ins>{<ins style="color: red; font-weight: bold; text-decoration: none;">s/.*addr://;s/ .*;p</ins>}')<ins style="color: red; font-weight: bold; text-decoration: none;">"</ins></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">if [ -n "$WANIP" ]</td><td> </td><td style="background: #eee; font-size: smaller;">if [ -n "$WANIP" ]</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">then</td><td> </td><td style="background: #eee; font-size: smaller;">then</td></tr>
</table>Sashhttp://forum.dd-wrt.com/wiki/index.php?title=IPv6_%28tutorial%29&diff=44384&oldid=prevSash: /* Startup Script */2013-01-28T11:57:22Z<p><span class="autocomment">Startup Script</span></p>
<table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;">
<tr>
<td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td>
<td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 11:57, 28 January 2013</td>
</tr>
<tr><td colspan="2" align="left"><strong>Line 450:</strong></td>
<td colspan="2" align="left"><strong>Line 450:</strong></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"> insmod ipv6</td><td> </td><td style="background: #eee; font-size: smaller;"> insmod ipv6</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"> sleep 5</td><td> </td><td style="background: #eee; font-size: smaller;"> sleep 5</td></tr>
<tr><td>-</td><td style="background: #ffa; font-size: smaller;"> WANIP=$(<del style="color: red; font-weight: bold; text-decoration: none;">ip </del>-<del style="color: red; font-weight: bold; text-decoration: none;">4 addr show dev vlan1 | awk </del>'/inet / {<del style="color: red; font-weight: bold; text-decoration: none;">print $2</del>}' <del style="color: red; font-weight: bold; text-decoration: none;">| cut -d/ -f1</del>)</td><td>+</td><td style="background: #cfc; font-size: smaller;"> WANIP=<ins style="color: red; font-weight: bold; text-decoration: none;">"</ins>$(<ins style="color: red; font-weight: bold; text-decoration: none;">ifconfig vlan2 | sed </ins>-<ins style="color: red; font-weight: bold; text-decoration: none;">n </ins>'/inet /{<ins style="color: red; font-weight: bold; text-decoration: none;">s/.*addr://;s/ .*;p</ins>}')<ins style="color: red; font-weight: bold; text-decoration: none;">"</ins></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"> MY_TUNNEL_ADDR="2001:470:1f0e:5cd::2" # change me</td><td> </td><td style="background: #eee; font-size: smaller;"> MY_TUNNEL_ADDR="2001:470:1f0e:5cd::2" # change me</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"> MY_ROUTED_ADDR="2001:470:1f0f:5cd::1" # change me</td><td> </td><td style="background: #eee; font-size: smaller;"> MY_ROUTED_ADDR="2001:470:1f0f:5cd::1" # change me</td></tr>
</table>Sashhttp://forum.dd-wrt.com/wiki/index.php?title=IPv6_%28tutorial%29&diff=44383&oldid=prevSash: /* 6rd */2013-01-28T11:56:56Z<p><span class="autocomment">6rd</span></p>
<table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;">
<tr>
<td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td>
<td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 11:56, 28 January 2013</td>
</tr>
<tr><td colspan="2" align="left"><strong>Line 237:</strong></td>
<td colspan="2" align="left"><strong>Line 237:</strong></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"> sleep 5 </td><td> </td><td style="background: #eee; font-size: smaller;"> sleep 5 </td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"> HOST6RD=$(nslookup 6rd.comcast.net |grep "Address"|awk '{ print $3 }'|grep -v 192.168.1.1 -m1)</td><td> </td><td style="background: #eee; font-size: smaller;"> HOST6RD=$(nslookup 6rd.comcast.net |grep "Address"|awk '{ print $3 }'|grep -v 192.168.1.1 -m1)</td></tr>
<tr><td>-</td><td style="background: #ffa; font-size: smaller;"> WANIP=$(<del style="color: red; font-weight: bold; text-decoration: none;">ip -4 addr show dev </del>vlan2 | <del style="color: red; font-weight: bold; text-decoration: none;">grep </del>'inet <del style="color: red; font-weight: bold; text-decoration: none;">' | awk '</del>{<del style="color: red; font-weight: bold; text-decoration: none;">print $2</del>}' <del style="color: red; font-weight: bold; text-decoration: none;">| cut -d/ -f1</del>)</td><td>+</td><td style="background: #cfc; font-size: smaller;"> WANIP=<ins style="color: red; font-weight: bold; text-decoration: none;">"</ins>$(<ins style="color: red; font-weight: bold; text-decoration: none;">ifconfig </ins>vlan2 | <ins style="color: red; font-weight: bold; text-decoration: none;">sed -n </ins>'<ins style="color: red; font-weight: bold; text-decoration: none;">/</ins>inet <ins style="color: red; font-weight: bold; text-decoration: none;">/</ins>{<ins style="color: red; font-weight: bold; text-decoration: none;">s/.*addr://;s/ .*;p</ins>}')<ins style="color: red; font-weight: bold; text-decoration: none;">"</ins></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"> if [ -n "$WANIP" ]</td><td> </td><td style="background: #eee; font-size: smaller;"> if [ -n "$WANIP" ]</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"> then </td><td> </td><td style="background: #eee; font-size: smaller;"> then </td></tr>
</table>Sashhttp://forum.dd-wrt.com/wiki/index.php?title=IPv6_%28tutorial%29&diff=44382&oldid=prevSash: /* 6to4 on k2.6 builds */2013-01-28T11:56:17Z<p><span class="autocomment">6to4 on k2.6 builds</span></p>
<table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;">
<tr>
<td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td>
<td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 11:56, 28 January 2013</td>
</tr>
<tr><td colspan="2" align="left"><strong>Line 206:</strong></td>
<td colspan="2" align="left"><strong>Line 206:</strong></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"> radvd -C /tmp/radvd.conf start </td><td> </td><td style="background: #eee; font-size: smaller;"> radvd -C /tmp/radvd.conf start </td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"> sleep 5 </td><td> </td><td style="background: #eee; font-size: smaller;"> sleep 5 </td></tr>
<tr><td>-</td><td style="background: #ffa; font-size: smaller;"> WANIP=$(<del style="color: red; font-weight: bold; text-decoration: none;">ip -4 addr show dev </del>vlan2 | <del style="color: red; font-weight: bold; text-decoration: none;">grep </del>'inet <del style="color: red; font-weight: bold; text-decoration: none;">' | awk '</del>{<del style="color: red; font-weight: bold; text-decoration: none;">print $2</del>}' <del style="color: red; font-weight: bold; text-decoration: none;">| cut -d/ -f1</del>) </td><td>+</td><td style="background: #cfc; font-size: smaller;"> WANIP=<ins style="color: red; font-weight: bold; text-decoration: none;">"</ins>$(<ins style="color: red; font-weight: bold; text-decoration: none;">ifconfig </ins>vlan2 | <ins style="color: red; font-weight: bold; text-decoration: none;">sed -n </ins>'<ins style="color: red; font-weight: bold; text-decoration: none;">/</ins>inet <ins style="color: red; font-weight: bold; text-decoration: none;">/</ins>{<ins style="color: red; font-weight: bold; text-decoration: none;">s/.*addr://;s/ .*;p</ins>}')<ins style="color: red; font-weight: bold; text-decoration: none;">" </ins></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"> if [ -n "$WANIP" ] </td><td> </td><td style="background: #eee; font-size: smaller;"> if [ -n "$WANIP" ] </td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"> then </td><td> </td><td style="background: #eee; font-size: smaller;"> then </td></tr>
</table>Sashhttp://forum.dd-wrt.com/wiki/index.php?title=IPv6_%28tutorial%29&diff=44381&oldid=prevSash: /* 6to4 on current builds (after v24 sp1) */2013-01-28T11:55:54Z<p><span class="autocomment">6to4 on current builds (after v24 sp1)</span></p>
<table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;">
<tr>
<td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td>
<td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 11:55, 28 January 2013</td>
</tr>
<tr><td colspan="2" align="left"><strong>Line 168:</strong></td>
<td colspan="2" align="left"><strong>Line 168:</strong></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"> radvd -C /tmp/radvd.conf start </td><td> </td><td style="background: #eee; font-size: smaller;"> radvd -C /tmp/radvd.conf start </td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"> sleep 5 </td><td> </td><td style="background: #eee; font-size: smaller;"> sleep 5 </td></tr>
<tr><td>-</td><td style="background: #ffa; font-size: smaller;"> WANIP=$(<del style="color: red; font-weight: bold; text-decoration: none;">ip -4 addr show dev </del>vlan2 | <del style="color: red; font-weight: bold; text-decoration: none;">grep </del>'inet <del style="color: red; font-weight: bold; text-decoration: none;">' | awk '</del>{<del style="color: red; font-weight: bold; text-decoration: none;">print $2</del>}' <del style="color: red; font-weight: bold; text-decoration: none;">| cut -d/ -f1</del>) </td><td>+</td><td style="background: #cfc; font-size: smaller;"> WANIP=<ins style="color: red; font-weight: bold; text-decoration: none;">"</ins>$(<ins style="color: red; font-weight: bold; text-decoration: none;">ifconfig </ins>vlan2 | <ins style="color: red; font-weight: bold; text-decoration: none;">sed -n </ins>'<ins style="color: red; font-weight: bold; text-decoration: none;">/</ins>inet <ins style="color: red; font-weight: bold; text-decoration: none;">/</ins>{<ins style="color: red; font-weight: bold; text-decoration: none;">s/.*addr://;s/ .*;p</ins>}')<ins style="color: red; font-weight: bold; text-decoration: none;">" </ins></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"> if [ -n "$WANIP" ] </td><td> </td><td style="background: #eee; font-size: smaller;"> if [ -n "$WANIP" ] </td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"> then </td><td> </td><td style="background: #eee; font-size: smaller;"> then </td></tr>
</table>Sashhttp://forum.dd-wrt.com/wiki/index.php?title=IPv6_%28tutorial%29&diff=44380&oldid=prevSash: /* Startup Script */2013-01-28T11:55:02Z<p><span class="autocomment">Startup Script</span></p>
<table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;">
<tr>
<td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td>
<td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 11:55, 28 January 2013</td>
</tr>
<tr><td colspan="2" align="left"><strong>Line 129:</strong></td>
<td colspan="2" align="left"><strong>Line 129:</strong></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"> radvd -C /tmp/radvd.conf start</td><td> </td><td style="background: #eee; font-size: smaller;"> radvd -C /tmp/radvd.conf start</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"> sleep 5</td><td> </td><td style="background: #eee; font-size: smaller;"> sleep 5</td></tr>
<tr><td>-</td><td style="background: #ffa; font-size: smaller;"> WANIP=$(<del style="color: red; font-weight: bold; text-decoration: none;">ip </del>-<del style="color: red; font-weight: bold; text-decoration: none;">4 addr show dev vlan1 | awk </del>'/inet / {<del style="color: red; font-weight: bold; text-decoration: none;">print $2</del>}' <del style="color: red; font-weight: bold; text-decoration: none;">| cut -d/ -f1</del>)</td><td>+</td><td style="background: #cfc; font-size: smaller;"> WANIP=<ins style="color: red; font-weight: bold; text-decoration: none;">"</ins>$(<ins style="color: red; font-weight: bold; text-decoration: none;">ifconfig vlan2 | sed </ins>-<ins style="color: red; font-weight: bold; text-decoration: none;">n </ins>'/inet /{<ins style="color: red; font-weight: bold; text-decoration: none;">s/.*addr://;s/ .*;p</ins>}')<ins style="color: red; font-weight: bold; text-decoration: none;">"</ins></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"> if [ -n "$WANIP" ]</td><td> </td><td style="background: #eee; font-size: smaller;"> if [ -n "$WANIP" ]</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"> then</td><td> </td><td style="background: #eee; font-size: smaller;"> then</td></tr>
</table>Sashhttp://forum.dd-wrt.com/wiki/index.php?title=IPv6_%28tutorial%29&diff=43919&oldid=prevAndimayer82: /* 6to4 Setup */2012-10-20T14:56:48Z<p><span class="autocomment">6to4 Setup</span></p>
<table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;">
<tr>
<td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td>
<td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 14:56, 20 October 2012</td>
</tr>
<tr><td colspan="2" align="left"><strong>Line 294:</strong></td>
<td colspan="2" align="left"><strong>Line 294:</strong></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">Notes: ::1/128 == localhost, ::/0 == default, 2002::/16 == 6to4, ::/96 + ::ffff::0/96 == IPv4 compatibility, 2001::/32 == Teredo, 2000::/3 would be All IPv6 Global Unicast address space</td><td> </td><td style="background: #eee; font-size: smaller;">Notes: ::1/128 == localhost, ::/0 == default, 2002::/16 == 6to4, ::/96 + ::ffff::0/96 == IPv4 compatibility, 2001::/32 == Teredo, 2000::/3 would be All IPv6 Global Unicast address space</td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;">==6to4 on WAN connections with dynamically assigned IPv4 address==</td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;">If you have a dial-up connection with a dynamically assiged IPv4 address, the corresponding IPv6 address block changes every time a new WAN connection is established. You can put the 6to4 startup script into /jffs/etc/config/6to4.wanup to get the correct 6to4 IPv6 block every time when you get a new IPv4. Please note that this means that all your network's global IPv6 addresses change, too.</td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;">For more info, see [http://blog.dev001.net/post/33503557513/dd-wrt-ipv6-and-6to4-with-dynamic-wan-ip]</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">=SixXS Tunnel Broker=</td><td> </td><td style="background: #eee; font-size: smaller;">=SixXS Tunnel Broker=</td></tr>
</table>Andimayer82