Windows隧道设置.docx
《Windows隧道设置.docx》由会员分享,可在线阅读,更多相关《Windows隧道设置.docx(14页珍藏版)》请在冰点文库上搜索。
Windows隧道设置
Windows XP_2003操作系统下IPv6配置方法
在通常使用的Windows操作系统中,Windows XP和Windows Server 2003能够直接支持IPv6,而Windows 2000则需要另外安装插件才可以支持。
下面以Windows XP操作系统为例,描述通过校园网接入IPv6环境的配置方法。
Windows XP在默认状态下不安装IPv6协议,有两种方法可以在Windows XP中安装协议:
============================================
Windows XP(SP1+):
netsh interface ipv6 install
netsh interface ipv6 set teredo client
若想用微软的服务器,可以用下面的命令:
netsh interface ipv6 set teredo client .
公共Teredo服务器地址列表
* / teredo- (法国) (Miredo 默认设置)
* (西班牙)
* (美国 雷蒙德) (Windows XP/2003/Vista/7/2008 系统默认设置)
* teredo.ngix.ne.kr (韩国)
* (美国 芝加哥)
打开浏览器,输入网址:
并回车,你看到了什么?
[1.JPG]
[2.JPG]
[3.JPG]
[WindowsXP操作系统下IPv6配置方法.jpg]
[IPv6命令.jpg]
[ipv4和Pv6地址的区别.jpg]
作者:
weasel 经验值:
1656 发言:
498 回复:
602 写信 发表于:
2010_07_26PM2:
42 回贴:
7
回 复:
ISATAPIPv6隧道接入方式
ISATAP IPv6 隧道接入方式
1. ISATAP隧道点IP地址是
用户设置isatap隧道的终结点router为
Windows XP/2003 设置如下:
点击“开始”-“运行”打开运行窗口,输入cmd 回车
然后 C:
\Documents and Settings\Administrator> ipv6 install
回车添加ipv6协议,下来添加隧道。
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
---------------------------------------------------------------------
使用上海交大的隧道服务
C:
>netsh
netsh>int
netsh interface>ipv6
netsh interface>ipv6>install
netsh interface ipv6>isatap
netsh interface ipv6 isatap>set router 202.112.26.254
使用清华大学的隧道服务
C:
>netsh
netsh>int
netsh interface>ipv6
netsh interface ipv6>isa
netsh interface ipv6 isatap>set router 59.66.17.202 enabled
netsh interface ipv6 isatap>ipv6
netsh interface ipv6>set route prefix=:
:
/0 interface="Automatic Tunneling Pseudo-Interface" nexthop=fe80:
:
5efe:
59.66.17.202 metric=100
台湾某运营商,公网推荐用这个
C:
>netsh
netsh>int
netsh interface>ipv6
netsh interface>ipv6>install
netsh interface ipv6>isatap
netsh interface ipv6 isatap>set router .tw
---------------------------------------------------------------------
Vista 设置如下:
鼠标右键点击“开始->程序->附件->命令提示符”,选择“以管理员身份运行”。
在新开启的【命令提示符】窗口中执行以下两条命令:
netsh interface ipv6 isatap set router
netsh interface ipv6 isatap set state enabled
(部分Vista系统的电脑会在本地LAN中发出IPv6 RA,导致相邻用户不走隧道,此时最好在本地网卡上禁用IPv6选项)
-----------------------------------------------------------------------
Linux 设置如下:
ip tunnel add sit1 mode sit remote 202.120.58.150 local a.b.c.d
ifconfig sit1 up
ifconfig sit1 add 2001:
da8:
8000:
d010:
0:
5efe:
a.b.c.d/64
ip route add :
:
/0 via 2001:
da8:
8000:
d010:
:
1 metric 1
注意:
上面的 a.b.c.d 请使用你的真实IPv4地址代替
-----------------------------------------------------------------------
配置好之后 ipconfig后应该看到一个2001:
da8:
8000:
d010 为前缀的v6地址,hostid为5efe:
a.b.c.d,其中a.b.c.d为你的真实的IPV4地址。
推荐使用ISATAP隧道方式接入,不要和下面的另一种6to4隧道同时使用。
2. 网络中心6to4隧道点IP地址是202.112.26.246
如果您无法使用ISATAP方式接入,可以考虑使用这种方式。
用户设置6to4隧道的终结点relay为202.112.26.246
Windows XP/2003 设置如下:
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 202.112.26.246 enable
然后 ipconfig后应该看到一个2002:
xx:
xx为前缀的v6地址,hostid亦为xx:
xx,
其中xx.xx为你的真实的IPV4地址转化成得ipv6地址。
自动获得的默认网关是2002:
ca70:
1af6:
:
ca70:
1af6
作者:
weasel 经验值:
1656 发言:
498 回复:
602 写信 发表于:
2010_04_03PM11:
31
回 复:
Pv6的ISATAP隧道和6to4隧道的应用模式
(2)
Pv6的ISATAP隧道和6to4隧道的应用模式
(2)
[Pv6的ISATAP隧道和6to4隧道的应用模式
(2).png]
作者:
weasel 经验值:
1656 发言:
498 回复:
602 写信 发表于:
2010_04_03PM4:
25
回 复:
WIN7及XP系统下固定“个性化”IPv6地址教程WIN7环境:
WIN7及XP系统下固定“个性化”IPv6地址教程WIN7环境:
1.开始菜单-写入cmd-右键选择以管理员身份运行cmd,或者直接按windows徽标键+r
在弹窗里依次敲入以下每个命令并回车,正常情况下会返回三个“确定”结果。
C:
\>netsh
netsh interface ipv6 set teredo disable
netsh interface ipv6 isatap set state disable
netsh interface ipv6 set privacy disable
2.由快速连接处进入网络共享中心(Open Network and Sharing Center)
3.点击进入本地连接(Local Area Connection),点击属性(Properties)
4.选择Internet proctocol Version(TCP/IPv6)协议,点属性
5.在IPv6地址设置里面,网关和DNS等不需改动,只需要填入自己想固定的IP,如2001:
da
8:
1007:
XXXX:
YYYY:
YYYY:
YYYY:
YYYY。
说明一下,XXXX应该与原来的ipv6地址一致,2001:
da8:
1007号段属于南大,你原来的XXXX代表你所在的楼宇节点,四个YYYY可以自我设定,
可以非常个性化,但是最好不要不填或者都只填某个简单数字,只要不占用网关或与他人
冲突,系统就会接受。
建议事先确定好IP,别重复操作。
6.重启。
再次进入cmd,敲入ipconfig,回车,你所设定的IP应该处在v6地址的第一位了
如此,固定成功。
XP环境:
1.开始菜单-运行-cmd(也需要管理员权限)
在弹窗中敲入以下命令
C:
\>netsh
netsh>interface ipv6
netsh interface ipv6>add address "本地连接" 2001:
da8:
1007:
XXXX:
YYYY:
YYYY:
YYYY:
YYYY
回车,系统应该返回“确定”。
注意引号的中英文标点,应在英文状态下输入,本地连接四个字是中文,XXXX和YYYY意义
同上。
2.重启电脑,再次进入cmd,敲入ipconfig,回车,你所设定的IP也应该处在v6地址的第一
位了。
作者:
weasel 经验值:
1656 发言:
498 回复:
602 写信 发表于:
2010_04_03PM11:
37
回 复:
非教育网用户IPV6穿墙Teredo方案
非教育网用户IPV6穿墙Teredo方案
大家都知道IPV4地址目前即在不久的将来枯竭。
但是国内目前除教育网外,并没有部署IPV6网关出口,所以IPV6翻墙对非教育网用户来说非常困难。
在IPV4到IPV6的技术过度中,目前有三种不同的隧道技术支持将IPV6的孤岛通过隧道技术方式连接在一起。
主要有ISATAP 隧道,6to4隧道 ,Teredo IPv6/IPv4 转换技术三种方案。
而前两种技术是不支持NAT用户的。
对于大多数同学来说,都是通过内网路由器上网,必须面临穿越NAT的难题,Teredo 技术应运而生(不支持"对称 NAT"),Teredo 是作为实现 IPv6 连接最后一种转换技术而设计的,认识到这一点很重要。
如果原来的 IPv6 、 6to4 或者ISATAP连接可用,那么主机就不必作为 Teredo 的客户端。
(感谢微软)。
更多的关于ISATAP 隧道,6to4隧道 ,Teredo 的技术问题,大家可以Google之,本文如有技术上的错误也请指出。
下面直接是Teredo 穿墙应用方案。
对于Windows7 用户:
1.默认已经安装了IPV6
(1)设置IPV6 teredo 服务器地址
netsh interface ipv6 set teredo client .
(2)设置 teredo 客户端类型
netsh interface ipv6 set teredo enterpriseclient
2.修改主机hosts 文件,
首先添加这2行
127.0.0.1 localhost
:
:
1 localhost
然后手动添加IPV6地址
对于Windows XP(SP1+)用户:
1.在CMD命令行下执行以下明令
(1)安装 IPV6
netsh interface ipv6 install
(2)设置IPV6 teredo 服务器地址
netsh interface ipv6 set teredo client .
(3)设置 teredo 客户端类型
netsh interface ipv6 set teredo enterpriseclient
2.修改主机hosts 文件
首先添加这2行
127.0.0.1 localhost
:
:
1 localhost
然后手动添加IPV6地址
一些可能用到的诊断命令:
查看 teredo 状态命令
netsh interface ipv6 show teredo stat
查看IPV6 路由
netsh interface ipv6 show route
测试IPV6连通命令
ping -6
ping -6 -t
查看网卡或者隧道配置
ipconfig /all
目前可用的公共Teredo服务器地址列表
. (美国 雷蒙德) (Windows XP/2003/Vista/7/2008 系统默认设置)
. (美国 芝加哥)
. / teredo-.(法国) (Miredo 默认设置)
. (西班牙)
teredo.ngix.ne.kr. (韩国)
对于Linux用户的参考:
Linux上的开源Teredo客户端叫Miredo。
对于Ubuntu/Debian,Miredo已经有了deb安装包,开启TUN/TAP后运行 apt-get install miredo,再次用ifconfig查看时,名为teredo的TUN/TAP接口已经配置完成,IPv6前缀为2001:
0:
53aa:
64c:
。
大家按照步骤设置之后就应该可以翻墙访问了,不如直接打开 ,是不是发现已经能够打开了?
恭喜!