【问题标题】:Network unreachable when address is IPv6 in BuildrootBuildroot 中地址为 IPv6 时网络无法访问
【发布时间】:2015-06-09 11:23:10
【问题描述】:

我创建了一个自定义 Buildroot 2015.01 发行版,其中包含 3.10.0 Linux 内核,并在工具链和 uClibc 库中启用了 IPv6 支持。

尝试联系任何 IPv6 路由地址时会发生奇怪的行为,例如:

# wget google.com
Connecting to google.com ([2a00:1450:4002:809::200e]:80)                        
wget: can't connect to remote host: Network is unreachable      

但是,如果我在非 IPv6 地址上尝试相同的操作,则一切正常:

# wget abc.com                                                                                                                
Connecting to abc.com (199.181.132.250:80)                                                                                    
Connecting to abc.go.com (23.21.209.55:80)                                                                                    
index.html           100% |*******************************| 46408   0:00:00 ETA                                               

这是 IPv6 内核路由表:

# route -A inet6                                                                                                                       
Destination                                 Next Hop                                Flags Metric Ref    Use Iface             
::1/128                                     ::                                      U     0      0        1 lo                
fe80::20a:a5ff:fe12:3446/128                ::                                      U     0      0        1 lo                
fe80::/64                                   ::                                      U     256    0        0 eth0              
ff02::1:ffdc:adf/128                        ::                                      UC    0      1        0 eth0              
ff02::1:fff4:5e3d/128                       ::                                      UC    0      1        0 eth0              
ff00::/8                                    ::                                      U     256    0        0 eth0              

IPv4 一:

# route -A inet
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface                                                 
default         192.168.0.230   0.0.0.0         UG    0      0        0 eth0                                                  
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0                                                  

任何帮助或建议将不胜感激。

【问题讨论】:

    标签: linux routing ipv6 buildroot


    【解决方案1】:

    我通过安装标准 wget 而不是 Busybox 的集成解决方案。

    我们的内部网络似乎不支持 IPv6,并且 Busybox 的 wget 在无法到达目的地时停止了。相反,标准 wget 回退到 IPv4 地址,完成下载。

    编辑:除了我们的网络,Busybox 的 wget 似乎有一些问题

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-04-16
      • 1970-01-01
      • 2021-04-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-07-16
      • 2019-08-13
      相关资源
      最近更新 更多