使用IPv6访问网络

  IPv6离我们并不遥远,其实就在我们身边,Vista本就支持IPv6,Win7更是在很多方面上面运用了IPv6。一些高等院校宿舍楼原生支持IPv6(很可惜,我的学校不但自己没宿舍的网络,还和电信勾结…)。直接从现有IPv4升级到IPv6,并不现实,所以微软的系统提供了多种过渡方式,配合各大院校或服务提供商提供的隧道,我们可以在IPv4上面是使用IPv6业务。

常用的大学隧道有:

  • 上交: isatap.sjtu.edu.cn
  • 清华: isatap.tsinghua.edu.cn
  • 上大: isatap.shu.edu.cn
  • 华中科大: isatap.hust.edu.cn
  • 中国人民大学: isatap.ruc.edu.cn
  • 北京邮电大学: 211.68.71.43
  • 重庆大学: 202.202.217.98
  • 湖南大学: 210.43.96.186
  • 河南工程学院: 211.84.0.1
  • 华中科技大学: 202.114.1.186

一般使用前面几个就可以了,反正我用上海交大的不错。

  Vista和Win7都默认已经开启IPv6,而XP由于默认没有安装IPv6,所以先得安装一下

1
2
3
4
netsh
netsh>interface
netsh interface>ipv6
netsh interface>ipv6>install

  接着,我们来设置IPv6的隧道( 我以上海交大的隧道地址为例 )

1
2
3
4
5
6
netsh
netsh>interface
netsh interface>ipv6
netsh interface ipv6>isatap
netsh interface ipv6 isatap>set router isatap.sjtu.edu.cn enabled
netsh interface ipv6 isatap>set state enabled

配置完成。

Win7由于默认开启了6to4Teredo隧道,所以在以上的情况下面上海交大的IPv6可能会因为使用默认的6to4隧道而不正常。

于是我们还需关掉6to4隧道

1
2
3
4
5
6
> netsh interface ipv6 isatap>quit
> netsh
> netsh>interface
> netsh>interface>6to4
> netsh interface 6to4>set state disabled
>

这时访问http://www.kame.net/网站

假如页面上的乌龟是运动的,说明你是通过IPv6访问的
使用IPv6

但是要是乌龟不动,说明你的配置不正确
未使用IPv6

其它一些命令

IPv6的接口关闭命令

1
2
3
netsh interface teredo>set state disable
netsh interface 6to4>set state disabled
netsh interface isatap>set state disabled

还原为默认状态:

1
2
3
netsh interface teredo>set state default
netsh interface 6to4>set state default
netsh interface isatap>set state default

重置IPv6,你可以使用rest命令

1
netsh interface ipv6>reset

相关网站

http://sixxs.org
http://yegle.net/glype/