To jest konfiguracja sieci mojego komputera:
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
Pytanie brzmi: dlaczego, kiedy jestem ping
adresem IP 10.0.0.255
, widzę następujący wynik:
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
Jak widać powyżej, zamiast nic nie zwracać (ponieważ 10.0.0.255
nie jest to prawidłowy adres IP i jest to adres IP mojej sieci), pinguje 10.0.0.5
i 10.0.0.154
! Dlaczego?
Zauważ, że sprawdziłem hosts
plik pod Windows\system32\drivers\etc\
ścieżką i jak widzisz, nie ma tam przekierowania:
Aktualizacja:
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>