首先在winxp+SP2版本下要安装ipv6协议:
Windows XP/2003 可能需要预先安装IPv6协议,设置如下:
运行 netsh
netsh>int
netsh interface>ipv6
netsh interface>ipv6>install
netsh interface ipv6>exit
重启计算机
cmd->ipv6 uninstall (卸载ipv6协议)
一、ISATAP隧道
利用上海交通大学的router来上ipv6网站:
Windows XP/2003 设置如下:
开始---运行---cmd,在dos下,依次运行
C:/Documents and Settings/Administrator>netsh
netsh>int
netsh interface>ipv6
netsh interface>ipv6>install
netsh interface ipv6>isatap
netsh interface ipv6 isatap>set router isatap.sjtu.edu.cn enable //isatap.sjtu.edu.cn 地址为上海交通大学路由器地址。
二、6to4隧道
C:/Documents and Settings/Administrator>netsh
netsh>int
netsh interface>ipv6
netsh interface>ipv6>install
netsh interface ipv6>6to4
netsh interface ipv6 6to4>set relay ipv6-lab-gw.cisco.com enable
貌似是xp的bug,本来ipv6的优先级列表是这样的:
netsh interface ipv6>show prefix
正在查询活动状态...
优先顺序 标签 前缀
---------- ----- --------------------------------
5 5 2001::/32
10 4 ::ffff:0:0/96
20 3 ::/96
30 2 2002::/16
40 1 ::/0
50 0 ::1/128
但6to4的还是在ipv4之后,用命令:
netsh interface ipv6>set prefix ::1/128 50 0
确定。
netsh interface ipv6>set prefix ::/0 40 1
确定。
netsh interface ipv6>set prefix 2002::/16 30 1
确定。
netsh interface ipv6>set prefix ::/96 20 3
确定。
netsh interface ipv6>set prefix ::ffff:0:0/96 10 4
确定。
netsh interface ipv6>set prefix 2001::/32 5 5
确定。
netsh interface ipv6>show pref
正在查询活动状态...
优先顺序 标签 前缀
---------- ----- --------------------------------
5 5 2001::/32
10 4 ::ffff:0:0/96
20 3 ::/96
40 1 ::/0
50 0 ::1/128
30 1 2002::/16
netsh interface ipv6>
改过来即可。
(改teredo的优先级同理,2001::/32 = Teredo (IPv6))
三、IPv6测试网站:
http://www.ipv6.org.tw/newc.php
http://www.youtube.com/