Mon, 21 Jan 2013 by Bolshevik in os | Comments

Setting up IPv6 tunneling with Teredo is a default tunneling implementation available in Windows OSes. It is used when one would like to access IPv6 enabled internet resources but doesn't have native IPv6 connectivity.

To enable tunneling in Ubuntu one needs to install miredo package:

>sudo apt-get install miredo

After installation all is configured and enabled automatically.

On Windows 7 all is a bit complicated. Surprisingly! First of all it is required to enable teredo client or enterprise client depending on one's LAN configuration:

>netsh int ter set state enterpriseclient
>netsh int ter

Then run show interfaces to show interfaces numbers and set default route:

netsh int teredo>int ipv6 add route ::/0 interface=##

replacing ## with teredo interface id.

Additionally to enable IPv6 DNS resolving for applications it is required to add the following registry value. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Dnscache\Parameters create DWORD variable called AddrConfigControl set to 0.

If one wants to use non-standard Microsoft's teredo server teredo.ipv6.microsoft.com it is possible to change the server URL by passing it to netsh:

>netsh int ter set state enterpriseclient teredo.remlab.net

Results:

>ifconfig
teredo    Link encap:UNSPEC  HWaddr    00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
      inet6 addr: 2001:0:53aa:xxxx:xxxx:xxxx:xxxx:xxxx/32 Scope:Общий
      inet6 addr: fe80::ffff:ffff:ffff/64 Scope:Link
      UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1280  Metric:1
      RX packets:4312345 errors:0 dropped:0 overruns:0 frame:0
      TX packets:7955222 errors:0 dropped:0 overruns:99620 carrier:0
      collisions:0 txqueuelen:500 
      RX bytes:386847775 (386.8 MB)  TX bytes:194659536 (194.6 MB)
>ping6 ipv6.google.com
PING ipv6.google.com(lb-in-x69.1e100.net) 56 data bytes
64 bytes from lb-in-x69.1e100.net: icmp_seq=1 ttl=55 time=239 ms
64 bytes from lb-in-x69.1e100.net: icmp_seq=2 ttl=55 time=84.0 ms
64 bytes from lb-in-x69.1e100.net: icmp_seq=3 ttl=55 time=84.1 ms
64 bytes from lb-in-x69.1e100.net: icmp_seq=4 ttl=55 time=83.4 ms
64 bytes from lb-in-x69.1e100.net: icmp_seq=5 ttl=55 time=85.9 ms
^C
--- ipv6.google.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4005ms
rtt min/avg/max/mdev = 83.463/115.390/239.271/61.946 ms

Comments

comments powered by Disqus

About

PHP web developer, python developer