这几个月在玩win7,某天发现可以访问IPv6地址,win7内建的IPv6寻址是通过微软的teredo实现的.并不是电信或者网通支持了IPv6.teredo应该也是一种隧道类型,建立在nat外.除了teredo隧道,也可以使用isatap,使用国内高校的教育网IPv6资源.同样也是可以浏览IPv6网站的.
win7内置了IPv6的支持,XP系统默认是没有开启IPv6协议的.开启这个协议也很简单.步骤:"开始菜单->运行->输入'ipv6 install'"接着重启电脑.重启之后还不能使用.因为还没有添加terede地址.
netsh int ipv6 set teredo client teredo.ipv6.microsoft.com. 30
其他命令可以直接在命令末尾输入"h"查看到,例如netsh interface ipv6 show h.主要使用到的命令是:
查看teredo: netsh int ipv6 show teredo
设置teredo: netsh int ipv6 set teredo client teredo.ipv6.microsoft.com. 30
重设teredo: netsh int ipv6 reset
查看IP地址: netsh int ipv6 show addresses
公共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 (美国 芝加哥)
XP安装IPv6隧道后还需要调整优先级.
netsh int ipv6 set prefix ::1/128 50 0
netsh int ipv6 set prefix ::/0 40 1
netsh int ipv6 set prefix 2002::/16 30 1
netsh int ipv6 set prefix ::/96 20 3
netsh int ipv6 set prefix ::ffff:0:0/96 10 4
netsh int ipv6 set prefix 2001::/32 5 1
最后还需要手动更改系统的host文件.位于C:\Windows\System32\drivers\etc目录下.打开https://docs.google.com/Doc?docid=0ARhAbsvps1PlZGZrZG14bnRfNjFkOWNrOWZmcQ&hl=zh_CN 将你需要的IPv6站点添加进来.Win7用户可以添加He.net的IPv6 PublicDNS.地址为2001:470:20::2
注意.如果按照上面的设置后还不能连接的,请做如下修改:
netsh interface ipv6 set teredo enterpriseclient
查看teredo返回的数据如下:
类型 : enterpriseclient
服务器名称 : teredo.ipv6.microsoft.com.
客户端刷新间隔 :30 秒
客户端口 : default
状态 : qualified
类型 : teredo client
网络 : managed
NAT : cone
其他系统设置Teredo技巧:http://felixcat.net/2010/04/install-teredo-ipv6/
参考资料:
http://en.wikipedia.org/wiki/Teredo_tunneling#Teredo_servers
http://social.technet.microsoft.com/Forums/en/w7itpronetworking/thread/b4d504c8-2ae9-41f3-bf21-e2e5d7d9704f
http://www.ipv6day.org/action.php?n=En.Configuration-Windows2003
http://www.to91.cn/to-422986475-1295655839