相关疑难解决方法(0)

如何使用 IPv6 ping 本地主机?

我试图更好地理解IPv6。

首先,我尝试ifconfig,我得到以下信息:

eth0      Link encap:Ethernet  HWaddr XXXXXXX
          inet addr:X.X.X.X  Bcast:X.X.X.X  Mask:XXXXXXXXX
          inet6 addr: XXXX::XXXX:XXX:XXXX:XXX/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:138752772 errors:0 dropped:0 overruns:0 frame:0
          TX packets:67894054 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:67347428211 (67.3 GB)  TX bytes:168368922639 (168.3 GB)
          Interrupt:43
Run Code Online (Sandbox Code Playgroud)

所以从上面我可以假设启用了 IPv6(如果我错了,请纠正我)。

现在,如果我使用ping localhost我得到:

64 bytes from localhost (127.0.0.1): icmp_req=1 ttl=64 time=0.026 ms
64 bytes from localhost (127.0.0.1): icmp_req=2 ttl=64 time=0.019 ms
64 bytes from localhost (127.0.0.1): icmp_req=3 ttl=64 time=0.025 …
Run Code Online (Sandbox Code Playgroud)

networking linux ping ipv6 localhost

22
推荐指数
3
解决办法
3万
查看次数

标签 统计

ipv6 ×1

linux ×1

localhost ×1

networking ×1

ping ×1