Today I mistyped the IP address of ping command by ignoring dot between zeros, like this:
ping 127.001
However, the command works, it outputs:
PING 127.001 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.063 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.095 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.093 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.066 ms
I'm confused and then try something like:
ssh [email protected]
to replace
ssh [email protected]
It works! And it even works in firefox browser:
http://192.168.01
But why? Is there any special case for addresses like these? What's the specification of this kind of "abbreviation" in ipv4? I can't find anything related to this by googling "ipv4 abbreviation", "ip abbreviation", "ipv4 address rule", etc.
inet(3)
page]