在 Buildroot 中地址为 IPv6 时无法访问网络

Network unreachable when address is IPv6 in Buildroot

我创建了一个带有 3.10.0 Linux 内核的自定义 Buildroot 2015.01 发行版,在工具链和 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内核路由table:

# 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                                                  

如有任何帮助或建议,我们将不胜感激。

我通过安装标准 wget 而不是 Busybox 的集成解决了这个问题。

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

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