LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 782|回复: 5

ipv6的mirror站点求助。

[复制链接]
发表于 2009-3-5 10:51:09 | 显示全部楼层 |阅读模式
http://mirror.switch.ch/ftp/mirror/
这个站点,能够使用浏览器登录(ipv6)。把它写在make.conf里,在emerge下载东西的时候,会把它解析为两个地址:
Resolving mirror.switch.ch... 130.59.10.36, 2001:620:0:8::20
Connecting to mirror.switch.ch|130.59.10.36|:80...
一个ipv4的,一个ipv6的,但是它只会用ipv4的地址连接,但是是国际网,教育网连接不了的。怎样让它只连接ipv6的地址呢?
发表于 2009-3-6 01:37:29 | 显示全部楼层
sed -i 's/wget/wget -6/g' /etc/make.conf
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-3-6 12:37:06 | 显示全部楼层
好像不行,connecting的时候还是选择ipv4的站点。
回复 支持 反对

使用道具 举报

发表于 2009-3-6 16:28:00 | 显示全部楼层
奇怪了。我这边是用tunnel broker进的ipv6网络,本地ipv6连接反而不行么?equery u wget(如果没装gentoolkit,就emerge -pv wget)看看有没有ipv6的USE flag?看了看俺的结果,加-6时应该压根就不解析ipv4地址。
  1. 正在解析主机 mirror.switch.ch... 2001:620:0:8::20
  2. Connecting to mirror.switch.ch|2001:620:0:8::20|:80... 已连接。
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-3-6 20:26:20 | 显示全部楼层
equery u wget
[ Searching for packages matching wget... ]
[ Colour Code : set unset ]
[ Legend : Left column  (U) - USE flags from make.conf              ]
[        : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for net-misc/wget-1.11.1 ]
U I
- - debug  : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see http://www.gentoo.org/proj/en/qa/backtraces.xml
+ + ipv6   : Adds support for IP version 6
+ + nls    : Adds Native Language Support (using gettext - GNU locale utilities)
- - socks5 : Adds support for the socks5 proxy
+ + ssl    : Adds support for Secure Socket Layer connections
- - static : !!do not set this during bootstrap!! Causes binaries to be statically linked instead of dynamically
是启用了ipv6的。
回复 支持 反对

使用道具 举报

发表于 2009-6-17 23:14:34 | 显示全部楼层
也遇到了这个问题  不知道lz弄好了没有
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表