有用户在deepin linux系统访问ipv6.baidu.com时无法正常访问ipv6地址,以下将为你带来这一现象的解释。关于系统的ipv6开启及禁用可先参考在Ubuntu操作系统上禁用IPv6和重新启用IPv6的方法。
问题说明 无法访问到ipv6.baidu.com,在ping ipv6.baidu.com时,出现下面的提示: PING ipv6.baidu.com(2400:da00:2::29 (2400:da00:2::29)) 56 data bytes From 2001:0:53aa:64c:34a3:9154:20b5:51cc (2001:0:53aa:64c:34a3:9154:20b5:51cc) icmp_seq=11 Destination unreachable: Address unreachable ifconfig显示如下所示: enp3s0f1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ether 80:fa:5b:4c:c0:70 txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Local Loopback) RX packets 30229 bytes 11288824 (10.7 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 30229 bytes 11288824 (10.7 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 teredo: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1280 inet6 2001:0:53aa:64c:34a3:9154:20b5:51cc prefixlen 32 scopeid 0x0<global> inet6 fe80::ffff:ffff:ffff prefixlen 64 scopeid 0x20<link> inet6 fe80::8152:3e65:3ff3:c23 prefixlen 64 scopeid 0x20<link> unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 500 (UNSPEC) RX packets 88 bytes 11068 (10.8 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 262 bytes 26776 (26.1 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 wlp4s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.1.105 netmask 255.255.255.0 broadcast 192.168.1.255 inet6 fe80::9af6:8ed1:936e:694b prefixlen 64 scopeid 0x20<link> ether f8:94:c2:6a:13:0a txqueuelen 1000 (Ethernet) RX packets 1261853 bytes 492129755 (469.3 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 1387608 bytes 1775692294 (1.6 GiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 xdroid0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.252.1 netmask 255.255.255.0 broadcast 0.0.0.0 inet6 fe80::8024:11ff:fe87:f61e prefixlen 64 scopeid 0x20<link> ether 82:24:11:87:f6:1e txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 153 bytes 23363 (22.8 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
解释 deepin系统可以直接访问IPv6网址,关键在于你的网络运营商提不提供IPv6网址,路由器能获取和分配IPv6。 我采用的是电信宽带,电脑直接连光猫拨号可以访问IPv6网址,连接路由器就不行,因为我的TP-LINK路由器无法获取IPv6地址,也没有DHCPv6功能分配IPv6地址给电脑。 我的deepin linux 15.11系统没有改过配置直连光猫拨号就可以访问ipv6.baidu.com,访问截图如下,可以看到,访问页面是正常的:
另外,使用IPv4地址是无法正常访问的,访问截图如下,会提示百度检测到您正在使用IPv4地址,无法直接使用IPv6域名:
相关主题 |