http://forum.dd-wrt.com/wiki/index.php?title=IPv6_%28tutorial%29&action=history&feed=atom IPv6 (tutorial) - Revision history 2024-03-28T13:20:40Z Revision history for this page on the wiki MediaWiki 1.10.1 http://forum.dd-wrt.com/wiki/index.php?title=IPv6_%28tutorial%29&diff=56195&oldid=prev Bib: m² speak more than grams of Earth 2022-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&lt;sup&gt;32&lt;/sup&gt;, or 4,294,967,296) IP addresses to be sufficient].&lt;br&gt; The next version of the TCP/IP protocol, IPv6 offers 128-bit address space, or 2&lt;sup&gt;128&lt;/sup&gt; (&amp;asymp; 3.4 x 10&lt;sup&gt;38&lt;/sup&gt;) IP addresses; this is approximately 5×10&lt;sup&gt;28&lt;/sup&gt; 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.&lt;br&gt;&lt;br&gt;</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&lt;sup&gt;32&lt;/sup&gt;, or 4,294,967,296) IP addresses to be sufficient].&lt;br&gt; The next version of the TCP/IP protocol, IPv6 offers 128-bit address space, or 2&lt;sup&gt;128&lt;/sup&gt; (&amp;asymp; 3.4 x 10&lt;sup&gt;38&lt;/sup&gt;) IP addresses; this is approximately 5×10&lt;sup&gt;28&lt;/sup&gt; 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&lt;sup&gt;23&lt;/sup&gt; addresses for each m² of Earth, including oceans</ins>.&lt;br&gt;&lt;br&gt;</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> Bib http://forum.dd-wrt.com/wiki/index.php?title=IPv6_%28tutorial%29&diff=53966&oldid=prev Ian5142: Removed Advanced tutorials 2018-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> Ian5142 http://forum.dd-wrt.com/wiki/index.php?title=IPv6_%28tutorial%29&diff=53960&oldid=prev Ian5142: Added Languages 2018-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">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">&#160;</td></tr> <tr><td colspan="2">&nbsp;</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&lt;sup&gt;32&lt;/sup&gt;, or 4,294,967,296) IP addresses to be sufficient].&lt;br&gt; The next version of the TCP/IP protocol, IPv6 offers 128-bit address space, or 2&lt;sup&gt;128&lt;/sup&gt; (&amp;asymp; 3.4 x 10&lt;sup&gt;38&lt;/sup&gt;) IP addresses; this is approximately 5×10&lt;sup&gt;28&lt;/sup&gt; 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.&lt;br&gt;&lt;br&gt;</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&lt;sup&gt;32&lt;/sup&gt;, or 4,294,967,296) IP addresses to be sufficient].&lt;br&gt; The next version of the TCP/IP protocol, IPv6 offers 128-bit address space, or 2&lt;sup&gt;128&lt;/sup&gt; (&amp;asymp; 3.4 x 10&lt;sup&gt;38&lt;/sup&gt;) IP addresses; this is approximately 5×10&lt;sup&gt;28&lt;/sup&gt; 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.&lt;br&gt;&lt;br&gt;</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;">&lt;br&gt;&lt;br&gt;</td><td> </td><td style="background: #eee; font-size: smaller;">&lt;br&gt;&lt;br&gt;</td></tr> <tr><td colspan="2">&nbsp;</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> Ian5142 http://forum.dd-wrt.com/wiki/index.php?title=IPv6_%28tutorial%29&diff=44385&oldid=prev Sash: /* 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 &gt;&gt; /tmp/wanip</td><td> </td><td style="background: #eee; font-size: smaller;">echo &gt;&gt; /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;">&quot;</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;">&quot;</ins></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">if [ -n &quot;$WANIP&quot; ]</td><td> </td><td style="background: #eee; font-size: smaller;">if [ -n &quot;$WANIP&quot; ]</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> Sash http://forum.dd-wrt.com/wiki/index.php?title=IPv6_%28tutorial%29&diff=44384&oldid=prev Sash: /* 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;">&quot;</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;">&quot;</ins></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> MY_TUNNEL_ADDR=&quot;2001:470:1f0e:5cd::2&quot; # change me</td><td> </td><td style="background: #eee; font-size: smaller;"> MY_TUNNEL_ADDR=&quot;2001:470:1f0e:5cd::2&quot; # change me</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> MY_ROUTED_ADDR=&quot;2001:470:1f0f:5cd::1&quot; # change me</td><td> </td><td style="background: #eee; font-size: smaller;"> MY_ROUTED_ADDR=&quot;2001:470:1f0f:5cd::1&quot; # change me</td></tr> </table> Sash http://forum.dd-wrt.com/wiki/index.php?title=IPv6_%28tutorial%29&diff=44383&oldid=prev Sash: /* 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 &quot;Address&quot;|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 &quot;Address&quot;|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;">&quot;</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;">&quot;</ins></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> if [ -n &quot;$WANIP&quot; ]</td><td> </td><td style="background: #eee; font-size: smaller;"> if [ -n &quot;$WANIP&quot; ]</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> Sash http://forum.dd-wrt.com/wiki/index.php?title=IPv6_%28tutorial%29&diff=44382&oldid=prev Sash: /* 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;">&quot;</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;">&quot; </ins></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> if [ -n &quot;$WANIP&quot; ] </td><td> </td><td style="background: #eee; font-size: smaller;"> if [ -n &quot;$WANIP&quot; ] </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> Sash http://forum.dd-wrt.com/wiki/index.php?title=IPv6_%28tutorial%29&diff=44381&oldid=prev Sash: /* 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;">&quot;</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;">&quot; </ins></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> if [ -n &quot;$WANIP&quot; ] </td><td> </td><td style="background: #eee; font-size: smaller;"> if [ -n &quot;$WANIP&quot; ] </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> Sash http://forum.dd-wrt.com/wiki/index.php?title=IPv6_%28tutorial%29&diff=44380&oldid=prev Sash: /* 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;">&quot;</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;">&quot;</ins></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> if [ -n &quot;$WANIP&quot; ]</td><td> </td><td style="background: #eee; font-size: smaller;"> if [ -n &quot;$WANIP&quot; ]</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> Sash http://forum.dd-wrt.com/wiki/index.php?title=IPv6_%28tutorial%29&diff=43919&oldid=prev Andimayer82: /* 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">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</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">&nbsp;</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">&nbsp;</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