目前有很多网站支持 ipv6 连接,比如

http://ipv6.google.com

但对大部分人来说,这个网址是不能访问的,因为没有设置好 ipv6 。目前 ISP 很少提供 ipv6 连接,用户一般需要使用 ipv6 tunnel broker 来建立管道来访问 ipv6 站点。

在 Linux 下这个工作很简单,以 Debian 为例,安装 miredo 包(包的名字是”多来咪”反过来):

# sudo apt-get install miredo

后输入

# /sbin/ifconfig

看到 teredo 这个虚拟网卡就可以用它访问 ipv6 了:

# ping6 ipv6.google.com

PING ipv6.google.com(2001:4860:b002::68) 56 data bytes
64 bytes from 2001:4860:b002::68: icmp_seq=1 ttl=56 time=874 ms
64 bytes from 2001:4860:b002::68: icmp_seq=2 ttl=56 time=322 ms
现在应该可以访问  http://ipv6.google.com 了,如果成功访问的话,你会看到在 ipv4 下面熟悉的 Google 搜索界面,但 Google Logo 是动画的。

使用 sixxs.org 提供的 ipv4/ipv6 交换门,可以实现在 ipv4 环境下访问 ipv6 站点,或者在 ipv6 环境下访问 ipv4 站点,方法是:

. ipv4 环境下,在 ipv6 网站后面添加 .ipv4.sixxs.org:

http://ipv6.google.com/   —>   http://ipv6.google.com.ipv4.sixxs.org/

而在 ipv6 环境下,在 ipv4 网站后面添加 sixxs.org 或者 .ipv6.sixxs.org:

http://wikipedia.org/   —>   http://wikipedia.org.sixxs.org/

从理论上来说,所有正常使用 80 端口的 ipv4 网站均可以在 ipv6 环境下使用 ipv6交换门来访问。

这台安装并能正确访问 ipv6 的 Linux 机器,可以安装 polipo (支持 ipv6 的代理)后让不支持 ipv6 的 Windows 系统访问 ipv6 站点:

# sudo apt-get install polipo

# vi /etc/polipo/config

找到 proxyAddress 改成允许 Windows 系统访问即可:

proxyAddress=”0.0.0.0″

#sudo /etc/init.d/polipo restart

polipo 的默认端口是 8123,把 Windows 系统的代理改成 LinuxIP:8123 就可以访问 ipv6 站点了。

技术文章 | 评论(0) | 引用(0) | 阅读(643)
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
昵称   密码   游客无需密码
网址   电邮   [注册]
               

验证码 不区分大小写