Skip to main content

Is 10.1 a valid IP address?

More
16 years 7 months ago #25473 by Datacom_guy
Hi,

Is 10.1 a valid IP address? In general is it valid even if all the 4 octets of the IP address are not specified in dotted decimal format.
I used inet_aton() and inet_addr() and both didn't complain about 10.1, assuming that it is valid.

Does it mean that 10.1 is the same as 10.0.0.1 or 10.1.0.0?

Going by this logic, does 10.1.2 the same as 10.0.1.2 or 10.1.2.0?

Thanks,
Datacom_guy
More
16 years 7 months ago #25474 by Chojin
10.1 will be translated towards 10.0.0.1

It is not valid, but just as IPv6 the address of 0000 can be replaced by 'nothing'

CCNA / CCNP / CCNA - Security / CCIP / Prince2 / Checkpoint CCSA
Time to create page: 0.114 seconds