Resposta estranha quando eu pingar x.x.x.255

1

Esta é a configuração da minha rede de computadores:

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

A pergunta é Por que quando eu ping o endereço IP 10.0.0.255 , vejo o seguinte resultado:

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

Como você vê acima, em vez de não retornar nada (porque 10.0.0.255 não é um endereço IP válido e é o meu IP de bradcast de rede) ele gera 10.0.0.5 e 10.0.0.154 ! Por quê?

Observe que eu verifiquei o arquivo hosts em Windows\system32\drivers\etc\ caminho e, como você vê, não há redirecionamento:

Atualização:

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>
    
por Abraham 29.07.2015 / 10:13

1 resposta

3

Porque o Ping é um serviço compatível com transmissão. Um computador que recebe esse pedido de eco terá prazer em responder.

    
por 29.07.2015 / 10:20