Ping 计算机名 - 结果格式

Ping 计算机名 - 结果格式

几个月后,我尝试在 Windows 7 PC 上使用 PING 命令。执行此操作时,我注意到以下结果:

使用计算机名称进行 Ping:

D:\>ping amdwin764

Pinging AMDWIN764 [fe80::ac53:546f:a730:8bd6%11] with 32 bytes of data:
Reply from fe80::ac53:546f:a730:8bd6%11: time=1ms
Reply from fe80::ac53:546f:a730:8bd6%11: time=1ms
Reply from fe80::ac53:546f:a730:8bd6%11: time=1ms
Reply from fe80::ac53:546f:a730:8bd6%11: time=1ms

Ping statistics for fe80::ac53:546f:a730:8bd6%11:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 1ms, Maximum = 1ms, Average = 1ms

使用 IP 地址进行 Ping:

D:\>ping 192.168.1.2

Pinging 192.168.1.2 with 32 bytes of data:
Reply from 192.168.1.2: bytes=32 time=75ms TTL=128
Reply from 192.168.1.2: bytes=32 time=1ms TTL=128
Reply from 192.168.1.2: bytes=32 time=1ms TTL=128
Reply from 192.168.1.2: bytes=32 time=1ms TTL=128

Ping statistics for 192.168.1.2:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 1ms, Maximum = 75ms, Average = 19ms

为什么在第一个示例中我没有获得带有数字 IP 地址的 Ping 结果?

谢谢,Kamlesh

答案1

它使用 IPv6 进行 ping。您可以使用 -4 选项强制 ping 命令使用 IPv4 命令。

c:\> ping -4 AMDWIN764

答案2

我相信您看到的主机名是 IPv6 IP 地址。虽然不确定,但我猜想当您 ping IP 地址时,您看到的是该 IP 地址;当您 ping 主机名时,如果它尝试将其解析为 IPv6 IP 地址,并且成功,那么您看到的就是该 IP。

相关内容