Saturday, April 20, 2024

通过Tedero访问IPv6网络

Teredo可以穿过路由器上网,对于路由器用户来说还需要修改teredo的【类型】参数,内网用户类型不是client而是enterpriseclient。

If it says “Client is in a managed Network” it means teredo has detected that you are in a corperate environment. If that is the case you need to set the Teredo type to Enterprise client “Netsh int ter set state enterpriseclient”.

以上文字来自Microsoft的论坛。

因而问题解决了,在管理员权限的cmd窗口中输入:
Netsh int ter set state enterpriseclient

对于Windows XP,你可以使用这句命令:
netsh interface ipv6 set teredo enterpriseclient

然后我们再看看teredo状态:
在命令行中输入:netsh interface ipv6 show teredo

可以看到teredo连通了!

teredo对于内网用户上ipv6来说真是福音啊!

附:开启 Teredo 通道, 提前感受 IPv6 (for 非教育网用户)
当初Win7刚要出来时,Felix对其“DirectAccess”功能感到十分向往,从网上找到资料,发现这只是 Teredo 的一个应用。在其他平台上,也一样可以轻易开启 Teredo 从而访问 IPv6 资源。

Windows XP(SP1+):
netsh interface ipv6 install
netsh interface ipv6 set teredo client

Windows Vista/7:
netsh int ter set state client

Debian/Ubuntu Linux:
sudo apt-get install miredo

Redhat/Fedora Linux:
su -c ‘yum install miredo’
su -c ‘service miredo-client start’

如果经过上面的设置还无法连接,请继续往下看:
Windows XP:
netsh interface ipv6 set teredo client <服务器地址>.
(注意有个句点)

Windows Vista/7:
netsh int teredo set state client <服务器地址>.
(注意有个句点)

Linux用户需要修改配置文件并重启服务:
Debian/Ubuntu:
sudo gedit /etc/miredo.conf

Redhat/Fedora:
su -c ‘dbus-launch gedit miredo.conf’
注释原来所有的 ServerAddress 段(在前面加上#号),然后增加下面的语句:
ServerAddress <服务器地址>
然后重启miredo服务
su -c ‘service miredo-client restart’ #Redhat/Fedora
sudo service miredo restart #Debian/Ubuntu

公共Teredo服务器地址列表

* teredo.remlab.net / teredo-debian.remlab.net (法国) (Miredo 默认设置)
* teredo.autotrans.consulintel.com (西班牙)
* teredo.ipv6.microsoft.com (美国 雷蒙德) (Windows XP/2003/Vista/7/2008 系统默认设置)
* teredo.ngix.ne.kr (韩国)
* teredo.managemydedi.com (美国 芝加哥)

打开浏览器,输入网址: ipv6.google.com 并回车,你看到了什么?

附上引用地址:
老N的博客
Felix Yan blog
网站IPv6服务hosts

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.