I don’t feel that anyone reading this in 2012 has never heard of IPv6. The easiest way to put it it’s a combinations of HEX values to make a big ugly “thing” that represents your computer. IPv4 was simple; four octets made up of a value from 0-255; thus 192.168.1.111. IPv6 takes this to a new other level. From Wikipedia:
IPv6 addresses have two logical parts:a 64-bit network prefix, and a 64-bit host address part. (The host address is often automatically generated from the interface MAC address.) An IPv6 address is represented by 8 groups of 16-bit hexadecimal values separated by colons (:) shown as follows:
The hexadecimal digits are case-insensitive. The 128-bit IPv6 address can be abbreviated with the following rules:
Rule 1: Leading zeros within a 16-bit value may be omitted. For example, the address
may be written as
Rule 2: One group of consecutive zeros within an address may be replaced by a double colon. For example,
A single IPv6 address can be represented in several different ways, such as 2001:db8::1:0:0:1 and 2001:0DB8:0:0:1::1. RFC 5952 recommends a canonical textual representation
How do I get an IPv6 Address on Lion
You most likely already have one! If you navigate to System Preferences = Network and click on the “Advance…” button on your Ethernet settings, you should see “Configure IPv6” and it’s set to automatic. You’re DONE!
Now, finding is your IPv6 address is another story. The best way to discover your IPv6 address is running the following command in Terminal:
You should get back something like the following:
You can see the inet6 value that starts with the hex values “fe80”, that is my IPv6 address. Notice at the end of that string is “%en0”, you don’t need that part. An easy way only to get the IPv6 Address in one line could be:
How to test IPv6 on your local network
Normally to test if a computer is on your network you would initiate a “ping” to the IP address of your target machine. IPv6 has the same capabilities, however, the function is not embedded into the “ping” command… it’s now “ping6”!
The interesting part of ping6 is that you have to declare the interface you are using to send the command. So on a standard Mac machine (and non-MB Air), you have two interfaces to choose from:
- WiFi (f.k.a AirPort):en1
So if I wanted to ping from my laptop to a target machine IPv6 address of “fe80::c62c:3ff:fe21:cc0e”, I would perform a ping6 the following:
- Wikipedia IPv6
- ping6 man page
Comments are closed. If you have a question concerning the content of this page, please feel free to contact me.