IPv6 Address and Address Notation and Prefix Representation
(Page 4 of 4)
IPv6 Mixed Notation
There is also an alternative notation used in some cases, especially for expressing IPv6 addresses that embed IPv4 addresses. For these, it is useful to show the IPv4 portion of the address in the older dotted decimal notation, since that's what we use for IPv4. Since embedding uses the last 32 bits for the IPv4 address, the notation has the first 96 bits in colon hexadecimal notation, and the last 32 bits in dotted decimal. So to take our same example again from above, in mixed notation it would be shown as:
This isn't really a great example of mixed notation, because embedding usually involves long strings of zeroes followed by the IPv4 address. Thus, zero compression comes in very handy here. Instead of seeing something like this:
You will typically see just:
At first glance this appears to be an IPv4 address; you have to keep a close eye on those colons in IPv6!
Like IPv4 classless addresses, IPv6 addresses are fundamentally divided into a number of network ID bits followed by a number of host ID bits. The network identifier is called the prefix, and the number of bits used is the prefix length. This prefix is represented by following the address by a slash and then putting the prefix length after the slash. This is the same method used for classless IPv4 addressing with CIDR. For example, if the first 48 bits of our example address were the network ID (prefix), then we would express this as 805B:2D9D:DC28::FC57:D4C8:1FFF/48.
As in IPv4, specifiers for whole networks will typically end in long strings of zeroes. These can be replaced by :: using zero compression. For example, the 48 bit network ID for the example above is 805B:2D9D:DC28:0:0:0:0:0/48, or 805B:2D9D:DC28::/48. You must include the :: if replacing the trailing zeroes.
Home - Table Of Contents - Contact Us
The TCP/IP Guide (http://www.TCPIPGuide.com)
Version 3.0 - Version Date: September 20, 2005
© Copyright 2001-2005 Charles M. Kozierok. All Rights Reserved.
Not responsible for any loss resulting from the use of this site.