<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>LAMPDocs &#187; Teredo</title>
	<atom:link href="http://www.lampdocs.com/tag/teredo/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lampdocs.com</link>
	<description>Documenting the Open Source</description>
	<lastBuildDate>Sat, 03 Dec 2011 15:09:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>IPv6 advantages and its configuration in OS Linux</title>
		<link>http://www.lampdocs.com/connecting-internet/ipv6-advantages-and-its-configuration-in-os-linux/</link>
		<comments>http://www.lampdocs.com/connecting-internet/ipv6-advantages-and-its-configuration-in-os-linux/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 08:14:46 +0000</pubDate>
		<dc:creator>Vadim Cissa</dc:creator>
				<category><![CDATA[Connecting To Internet]]></category>
		<category><![CDATA[6to4]]></category>
		<category><![CDATA[IPv4]]></category>
		<category><![CDATA[IPv6]]></category>
		<category><![CDATA[ipv6 configuration linux]]></category>
		<category><![CDATA[ipv6 linux howto]]></category>
		<category><![CDATA[ipv6 linux router]]></category>
		<category><![CDATA[ipv6 routing linux]]></category>
		<category><![CDATA[ipv6 tunnel linux]]></category>
		<category><![CDATA[Miredo]]></category>
		<category><![CDATA[NAT]]></category>
		<category><![CDATA[Teredo]]></category>
		<category><![CDATA[Tunnel broker]]></category>

		<guid isPermaLink="false">http://www.lampdocs.com/?p=997</guid>
		<description><![CDATA[Internet Protocol version 6 (IPv6) represents the next-generation protocol designed to replace IPv4, which still remains to be the most commonly used protocol in the Internet, though it&#8217;s nearly twenty years old now. The main reason for using another protocol is a growing shortage of IPv4 addresses needed by all new machines added to the [...]


Related posts:<ol><li><a href='http://www.lampdocs.com/connecting-internet/pppoe-connection/' rel='bookmark' title='Setting Up PPPoE Connection in Linux'>Setting Up PPPoE Connection in Linux</a></li>
<li><a href='http://www.lampdocs.com/linux-distros/gibraltar-v3-0/' rel='bookmark' title='Gibraltar v3.0'>Gibraltar v3.0</a></li>
<li><a href='http://www.lampdocs.com/other-recipes/network-interfaces/' rel='bookmark' title='Setting Up Network Interfaces in Linux'>Setting Up Network Interfaces in Linux</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><strong>Internet Protocol version 6</strong> (IPv6) represents the next-generation protocol designed to replace IPv4, which still remains to be the most commonly used protocol in the Internet, though it&#8217;s nearly twenty years old now. The main reason for using another protocol is a <em>growing shortage of IPv4 addresses</em> needed by all new machines added to the Internet.</p>
<p>IPv6 has a vastly larger address space than IPv4. This results from the use of a 128-bit address, whereas IPv4 uses only 32 bits. The new address space thus supports 2^128 (about 3.4×10^38) addresses. Thus IPv6 eliminates the need for <a href="http://en.wikipedia.org/wiki/Network_address_translation" target="_blank">network address translation</a> (NAT), which gained widespread deployment as an effort to solve the problem of IPv4 address exhaustion.</p>
<p>Of course, IPv4 address exhaustion is not the only problem that can be fixed by IPv6. Moreover IPv6 has other important improvements to IPv4 such as routing, network autoconfiguration, network security and etc.</p>
<p>In addition to the above mentioned improvements here the <strong><em>significant advantages of IPv6</em></strong> which can be very important for the end users:</p>
<ol>
<li>
<h3><strong>Static IP-addresses for your computers</strong></h3>
</li>
<p>Nowadays, in case you don&#8217;t have direct IPv6, the best way to connect to IPv6 is to register an account at a tunnel broker&#8217;s site. A <strong>tunnel broker</strong> is a company that offers service (for free) of transferring your traffic from IPv4 to IPv6 and backwards.</p>
<p>Using this method user gets his/her own IPv6 subnet, which is tied not to the current IPv4 address, but to his/her account (login and password). Thus you have the opportunity not just to get the range of IPv6 addresses, but to use them even if you change your IPv4 provider.</p>
<p>Moreover, every user gets a subnet /64, which is enough to connect to the network 2^64 devices and assign them static Internet addresses. This means that you can access any computer of your network directly (via its address) without the necessity to use NAT.</p>
<p>Some users may think that security problems will appear in this case, isn&#8217;t it? In fact there is no reason to worry. The only thing you should do is to configure your firewall, so it doesn&#8217;t pass connections from the Internet to the local network, except the ones that were allowed.</p>
<li>
<h3>Higher speed for torrents downloading</h3>
</li>
<p>BitTorrent Protocol is designed in such a way that users who do not have the opportunity to receive incoming connection (provider&#8217;s NAT is used) can &#8220;torrent&#8221; the files just from the users who have own IP address (NAT is not used). That&#8217;s why the growing shortage of IPv4 addresses will cause the decrease in amount of torrent peers and seeds.</p>
<p>If you use IPv6 there is no need to worry about this problem, because IPv6 users can get own IP addresses even in case their IPv4 provider uses NAT for them. Of course, you should check if your favorite tracker supports IPv6.</p>
<li>
<h3>Long-lived connections that remain even after IPv4 address changing</h3>
<p>Internet access control systems of some providers work in such a way that maximum duration of an Internet connection is equal to 24 hours, after which a forced disconnection takes place. During the repeated connection new IP-address is given. This can happen while you are chatting, playing online games, use different online services and etc.<br />
If you connect using IPv6, there won&#8217;t be a disconnection while IPv4 address is changing, because IPv6 remains the same. The only thing that will happen is discontinuance of data transfer for 15 seconds – the time needed for a tunnel broker to get the info about new IPv4.</li>
</ol>
<p>However despite all the improvements and advantages the worldwide penetration of IPv6 protocol is still less than one percent of Internet-enabled hosts in any country; though IPv6 has been implemented on all major operating systems in commercial, business, and home consumer environments.</p>
<p><span id="more-997"></span></p>
<p>For now let&#8217;s discuss the <strong><em>alternatives of IPv6 connection</em></strong>:</p>
<ol>
<li>
<h3>Direct connection</h3>
</li>
<p><em>Pros:</em></p>
<p>-	The most reliable one</p>
<p>-	It&#8217;s very easy to configure</p>
<p>-	The lowest ping and high speed</p>
<p><em>Cons:</em></p>
<p>-	In case it&#8217;s not offered by your Internet provider there is no way to connect it</p>
<p>-	At the moment the amount of providers who offer IPv6 is pretty limited</p>
<li>
<h3>6to4</h3>
</li>
<p><strong>6to4</strong> addressing represents a type of IPv6 address created by your IPv4 address. It allows you to set up tunnels over the IPv4 Internet automatically. Thus all the boxes behind your firewall will have IPv6 addresses. In case you would like to learn more please visit <a href="http://www.wlug.org.nz/6to4" target="_blank">this page</a>.</p>
<p><em>Pros:</em></p>
<p>-	There is no need to register any account</p>
<p>-	Optimal (the closest) gateway is chosen automatically by anycast method</p>
<p><em>Cons:</em></p>
<p>-	In case of dynamical IPv4, its change will cause the change of IPv6 as well</p>
<li>
<h3>Teredo</h3>
</li>
<p><strong>Teredo</strong> is an address assignment and automatic tunneling technology that provides unicast IPv6 connectivity across the IPv4 Internet, when IPv6/IPv4 hosts are located behind one or multiple IPv4 network address translators (NATs). If you need more info about Teredo, you can get it <a href="http://technet.microsoft.com/en-us/network/cc917486.aspx" target="_blank">here</a>.</p>
<p><em>Pros:</em></p>
<p>-	It&#8217;s very easy to setup (without the necessity to register an account)</p>
<p>-	There is a direct connection with ping between two Teredo users that is no worse than direct IPv6 connection</p>
<p>-	In Windows 7 it&#8217;s turned on by default</p>
<p><em>Cons:</em></p>
<p>-	In case of dynamical IPv4, its change will cause the change of IPv6 as well</p>
<li>
<h3>Tunnel Broker</h3>
</li>
<p><em>Pros:</em></p>
<p>-	It gives static IPv6 range, which does not depend on your Internet provider and does not change if IPv4-address is changed.</p>
<p>-	Some brokers give you the opportunity to easily (via web-interface) delegate reverse DNS to your DNS-servers</p>
<p><em>Cons:</em></p>
<p>-	You need to create an account on the broker&#8217;s site</p>
<p>-	Some brokers have to be informed when your IPv4 is changed (still this can be automated)</ol>
<p>In modern GNU/Linux distributions there is an opportunity to automatically get configured and working IPv6-tunnel by entering the only command (even if your provider does not support IPv6 or provides access to the Internet just via NAT). To do so you have to install a program called Miredo (http://www.remlab.net/miredo/). But before that make sure that the usage of UDP-port 3544 is not prohibited by your firewall.</p>
<p>The main characteristic feature of given method is that your IPv6-address will be changed each time you change your IPv4-address. In case you would like to get a static IPv6-address (it possible, moreover, absolutely free of charge), please use the tunnel broker method, which will be described a little bit later.</p>
<p>Now let&#8217;s go ahead with the <strong>IPv6 installation</strong>…</p>
<p>First of all we need to make sure that there is no access to IPv6 on the given computer:</p>
<blockquote><p><code># ping6 ipv6.google.com<br />
connect: Network is unreachable</code></p></blockquote>
<p>Now we need to install Miredo:</p>
<blockquote><p><code>sudo apt-get install miredo<br />
Reading package lists... Done<br />
Building dependency tree<br />
Reading state information... Done<br />
The following NEW packages will be installed:<br />
miredo<br />
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.<br />
Need to get 167kB of archives.<br />
After this operation, 430kB of additional disk space will be used.<br />
Get:1 http://localhost lenny/main miredo 1.1.5-1 [167kB]<br />
Fetched 167kB in 0s (1148kB/s)<br />
Selecting previously deselected package miredo.<br />
(Reading database ... 34093 files and directories currently installed.)<br />
Unpacking miredo (from .../miredo_1.1.5-1_amd64.deb) ...<br />
Processing triggers for man-db ...<br />
Setting up miredo (1.1.5-1) ...<br />
Starting Teredo IPv6 tunneling daemon: miredo.</code></p></blockquote>
<p>Check IPv6 again:</p>
<blockquote><p><code># ping6 ipv6.google.com<br />
PING ipv6.google.com(fx-in-x68.google.com) 56 data bytes<br />
64 bytes from fx-in-x68.google.com: icmp_seq=1 ttl=58 time=135 ms<br />
64 bytes from fx-in-x68.google.com: icmp_seq=2 ttl=58 time=135 ms<br />
64 bytes from fx-in-x68.google.com: icmp_seq=3 ttl=58 time=135 ms<br />
64 bytes from fx-in-x68.google.com: icmp_seq=4 ttl=58 time=135 ms<br />
^C<br />
--- ipv6.google.com ping statistics ---<br />
4 packets transmitted, 4 received, 0% packet loss, time 3006ms<br />
rtt min/avg/max/mdev = 135.393/135.547/135.631/0.091 ms</code></p></blockquote>
<p>It&#8217;s working! Now you can use any of <a href="http://www.sixxs.net/misc/coolstuff/" target="_blank"><em><strong>available IPv6 services</strong></em></a> and enjoy the fact that your computer belongs to the future Internet.</p>


<p>Related posts:<ol><li><a href='http://www.lampdocs.com/connecting-internet/pppoe-connection/' rel='bookmark' title='Setting Up PPPoE Connection in Linux'>Setting Up PPPoE Connection in Linux</a></li>
<li><a href='http://www.lampdocs.com/linux-distros/gibraltar-v3-0/' rel='bookmark' title='Gibraltar v3.0'>Gibraltar v3.0</a></li>
<li><a href='http://www.lampdocs.com/other-recipes/network-interfaces/' rel='bookmark' title='Setting Up Network Interfaces in Linux'>Setting Up Network Interfaces in Linux</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.lampdocs.com/connecting-internet/ipv6-advantages-and-its-configuration-in-os-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

