Thursday, September 20, 2018

Interesting Pinging

Try this below.  Its interesting.  If you have some "0"s in your IP address, you can leave them out of a ping and it will still ping just fine (provided it will respond anyway).  Below, I'm pinging 10.0.0.91, but as you can see, I only type in 10.91 instead. 

C:\Users\switch>ping 10.91

Pinging 10.0.0.91 with 32 bytes of data:
Reply from 10.0.0.91: bytes=32 time=21ms TTL=64
Reply from 10.0.0.91: bytes=32 time=1ms TTL=64
Reply from 10.0.0.91: bytes=32 time=1ms TTL=64
Reply from 10.0.0.91: bytes=32 time=1ms TTL=64

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

2 comments:

  1. I just tried it and it appends the zero to the end. ie. I have a 10.0.1.x subnet. If I type in 10.1.1, it pings 10.1.0.1. Figured I'd mention it, this is off a Win10 workstation.

    ReplyDelete
  2. Try ping 167772251

    10 * 256 * 256 * 256 (puts int in the 4th placeholder)
    + 91

    ReplyDelete

Your comment will be reviewed for approval. Thank you for submitting your comments.