Did you know that IPv4 addresses can be written in shorter representations, like IPv6 addresses?
Everyone have seen form of IPv6 represented as “shorter form”:
Example from IPv6:
You can use our free tool ipv6-literal.com to convert these addresses to long form. The result is:
What admins / programmers usually do not know, is that the same principle applies to IPv4 addresses:
To test these, use built in ping command. I used ping in Windows 7 and Ubuntu 10, and the result addresses are:
- 127.1 -> 127.0.0.1
- 1 -> 0.0.0.1
- 192.168.257 -> 192.168.1.1
- 192.168.65535 -> 192.168.255.255
- 192.168 -> 220.127.116.11
- 10.1 -> 10.0.0.1
As a bonus, you can try to ping other IP address representations:
- ping 0x7F000001 – hex
- ping 010 – octal, does not work in Ubuntu
- ping 2130706433 – decimal
Why it works this way? Because network funcions built into OS support a such behavior, for example:
Have a fun, and remember, that year of IPv6 is near.
IPv4 address exhaustion is slowly going into final phase.
To use IPv6 addresses in legacy software, some mechanism must be in place to not confuse programs with colons (:) in the addresses. For Windows this is IPv6 literals.
We have created IPv6 to literal online converting tool. It is a free tool to convert IPv6 to literal address ending with .ipv6-literal.net
For example, these two lines behave identically:
Also, zone ID is supported and shortest / longest IPv6 address form is calculated.
For more information and to test this tool in action, click here!
Use form below, if you have suggestions or comments.
UPDATE Apr 26, 2011. As Takyoji suggested, just added support for Reverse DNS lookup. Now last row is calculated for use with the special domain ip6.arpa.
Many people report that Ubuntu Server suddenly reverts its static IP address to dynamic (via DHCP). Here are some discussions:
static ip reverts back to DHCP (ubuntuforums.org).
Static IP reverting to DHCP on Ubuntu Server 8.04 (www.howtogeek.com).
This happened to me today with Ubuntu Server 9.04. Rebooting the server after installation have solved this problem.