首页 » 通信网络 » 正文

转载 内网使用 IPV6 之 TunnelBroker隧道(6in4)篇

原文链接:http://www.cnblogs.com/yisuo/p/8847504.html

内网使用 IPV6 之 TunnelBroker隧道(6in4)篇

据非专业网民推测 tunnelbroker isatap 和 6to4  貌似都需要公网,但有网民测试这位大作的方法可行。
特别之处是把命令行中自己的外网地址 aaa.aaa.aaa.aaa 换成内网地址

netsh interface ipv6 add v6v4tunnel IP6Tunnel aaa.aaa.aaa.aaa xxx.xxx.xxx.xxx
注意:如果你是NAT,请使用你的内网地址代替上面第二条命令中的 aaa.aaa.aaa.aaa

如果 tunnelbroker.net 的IP访问不了,你试试这个 http://tb.netassist.ua/


资料来源 http://blog.sina.com.cn/s/blog_715e0d5a01016709.html
相关资料 https://sskaje.me/2016/01/create-your-own-tunnelbroker-net-iproute2/
    https://github.com/sskaje/6in4

适用对象:任何有独立公共IP,或在家里使用NAT的童鞋。
如果在家使用NAT,需注意
1.局域网不能有超过一台PC使用这个 tunnel。
2.你的外网IP需要允许别人 ping 通,否则 tunnelbroker 不会接受建立tunnel的请求。

步骤:
1. 在http://www.tunnelbroker.net/申请帐号,在此不详述。
2. 登录 http://www.tunnelbroker.net/,在左侧的 User Functions 里点 Create Regular Tunnel:
通常只需要在 “IPv4 Endpoint (Your side):”里填上“You are viewing from:”后面的地址即可。
下面选择一个 Tunnel Server. 通常会给出个 tunnelbroker 认为最快的,你也可以自己选。我常用的是72.52.104.74和216.218.221.6。
通常72.51.104.74更快,你可以自己ping一下试试。
设置完成,点击 Create Tunnel.

3. 完成后,新页面有3个tab, 中间一个是“Example Configurations”. 点击这个tab,并选择你的操作系统。
我是 Windows 7,按 “Win”键和 “r” 键,打开运行窗口,输入 “cmd” 并点击 运行。在弹出的窗口里输入网页上给出的命令:

    netsh interface teredo set state disabled
    netsh interface ipv6 add v6v4tunnel IP6Tunnel aaa.aaa.aaa.aaa xxx.xxx.xxx.xxx
    netsh interface ipv6 add address IP6Tunnel 2001:470:xxxx:xxxx:::2
    netsh interface ipv6 add route ::/0 IP6Tunnel 2001:470:xxxx.xxxx::1

注意:如果你是NAT,请使用你的内网地址代替上面第二条命令中的 aaa.aaa.aaa.aaa
4. 添加 IPv6 DNS 服务器,用于解析 www.google.com 等 IPv6 网站的IPv6地址:

    2001:470:20::2
    2620:0:ccc::2
    2620:0:ccd::2

可以通过以下步骤添加:
仍旧在第3步打开的 cmd 窗口,输入以下命令:

    netsh interface ipv6 set dnsservers “Local Area Connection” static 2001:470:20::2 validate=no
    netsh interface ipv6 add dnsservers “Local Area Connection” 2620:0:ccc::2 validate=no
    netsh interface ipv6 add dnsservers “Local Area Connection” 2620:0:ccd::2 validate=no

5. 如果是 Windows 系统,还需要清空本地DNS缓存以使用IPv6访问 ipv4.google.com:

    ipconfig /flushdns

# 删除 隧道
#netsh interface ipv6 reset
netsh int ipv6 delete interface “IP6Tunnel”
netsh int ipv6 delete v6v4tunnel XXXXX
#netsh interface teredo set state disable
#netsh interface 6to4 set state disable
#netsh interface isatap set state disable
#devcon remove *6to4mp

6. 访问 http://www.test-ipv6.com/ 测试你的浏览器和系统的 IPv6 的支持。

访问 http://www.ipv6.org/ ,如果能看到是IPV6 ,说明配置成功。


IPV6网关到 http://en.wikipedia.org/wiki/List_of_IPv6_tunnel_brokers

国内高校的 http://web.ipv6home.cn/s/1008.html

218.195.60.114
tb2.ipv6.ascc.net
重庆大学:202.202.217.98
上海交大:isatap.sjtu.edu.cn
北京邮电大学:211.68.71.43
湖南大学:210.43.96.186
210.43.96.182
河南工程学院:211.84.0.1
华中科技大学:202.114.1.186
清华大学:isatap.tsinghua.edu.cn
59.66.17.202
中国人民大学:isatap.ruc.edu.cn
四川大学:202.115.39.98

http://www.ipv6home.cn/bbs/forum-72-1.html

liunx 安装方法
http://docs.sun.com/app/docs/doc/816-4554/ipv6-config-tasks-21?a=view


转载于:https://www.cnblogs.com/yisuo/p/8847504.html

发表评论