当我通过名称对本地主机执行 ping 命令时,我得到了奇怪的 IP 地址:
C:\Users\user>ping gold
Pinging GOLD [fe80::c5f8:b871:61d:8182%5] with 32 bytes of data:
Reply from fe80::c5f8:b871:61d:8182%5: time<1ms
Reply from fe80::c5f8:b871:61d:8182%5: time<1ms
Reply from fe80::c5f8:b871:61d:8182%5: time<1ms
Reply from fe80::c5f8:b871:61d:8182%5: time<1ms
我的电脑只有 wifi 网络适配器,其 IPsettings->wifi
很简单:
SSID: SS
Protocol: 802.11ac
Security type: WPA2-Personal
Network band: 5 GHz
Network channel: 104
IPv4 address: 192.168.1.189
IPv4 DNS servers: 192.168.1.254
Manufacturer: Qualcomm Atheros Communications Inc.
Description: Qualcomm Atheros QCA61x4A Wireless Network Adapter
Driver version: 12.0.0.312
Physical address (MAC): 58-00-E3-42-1F-2A
更新:
我已禁用 IPV6:
答案1
您看到的是 IPv6 地址,可以使用 -4 标志强制将其转换为 IPv4
ping hostname -4