Это конфигурация моей компьютерной сети:
C:\Users\user>ipconfig
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::f56e:2272:8e45:d325%11
IPv4 Address. . . . . . . . . . . : 10.0.0.81
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.0.0.60
Вопрос:почему, когда я ping
IP-адрес 10.0.0.255
, я вижу следующий результат:
C:\Users\User>ping 10.0.0.255
Pinging 10.0.0.255 with 32 bytes of data:
Reply from 10.0.0.5: bytes=32 time<1ms TTL=255
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Ping statistics for 10.0.0.255:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
C:\Users\User>ping 10.0.0.255
Pinging 10.0.0.255 with 32 bytes of data:
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Ping statistics for 10.0.0.255:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
Как вы видите выше, вместо того, чтобы ничего не возвращать (потому что 10.0.0.255
не является действительным IP-адресом и это мой сетевой IP-адрес), он пингует 10.0.0.5
и 10.0.0.154
! Зачем?
Обратите внимание, что я проверил файл hosts
в Windows\system32\drivers\etc\
path, и, как вы видите, там нет перенаправления:
Обновить:
C:\Users\user>ping -t 10.255
Pinging 10.0.0.255 with 32 bytes of data:
Reply from 10.0.0.5: bytes=32 time<1ms TTL=255
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time=1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Reply from 10.0.0.154: bytes=32 time<1ms TTL=64
Ping statistics for 10.0.0.255:
Packets: Sent = 49, Received = 49, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms
Control-C
^C
C:\Users\user>