Pv6 Address Notation

Because of the length of IPv6 addresses, it is impractical to represent them the same way as IPv4 addresses. At 128 bits, IPv6 addresses are four times the length of IPv4 addresses, so a more efficient way of representing them is called for. As a result, each of the eight groups of 16 bits in an IPv6 address is represented in hex, and these groups are separated by colons, as follows:

1234:5678:9ACB:DEF0:1234:5678:9ABC:DEF0

In IPv6, as in IPv4, unicast addresses have a two-level network:host hierarchy (known in IPv6 as the prefix and interface ID) that can be separated into these two parts on any bit boundary in the address. The prefix portion of the address includes a couple of components, including a global routing prefix and a subnet. However, the two-level hierarchy separates the prefix from the interface ID much like it divides the network and host portions of an IPv4 address. Instead of using a decimal or hex subnet mask, though, IPv6 subnets use slash notation to signify the network portion of the address, as follows:

1234:5678:9ABC:DEF0:1234:5678:9ABC:DEF0/64

An IPv6 address with a prefix length of 64 bits, commonly called a /64 address in this context, sets aside the first half of the address space for the prefix and the last half for the interface ID. After more coverage of the ground rules for IPv6 addressing, this chapter covers the ways that prefixes and interface IDs are developed for unicast addresses, as well as the additional address types used in IPv6 networks.

Address Abbreviation Rules

Even in the relatively efficient format shown earlier, the previous IPv6 addresses can be cumbersome because of their sheer length. As a result, a couple of abbreviation methods are used to make it easier for us to work with them. These methods include the following:

— ■ Whenever one or more successive 16-bit groups in an IPv6 address consist of all 0s, that i Topic portion of the address can be omitted and represented by two colons (::). The two-colon abbreviation can be used only once in an address, to eliminate ambiguity.

■ When a 16-bit group in an IPv6 address begins with one or more 0s, the leading 0s can be omitted. This option applies regardless of whether the double-colon abbreviation method is used anywhere in the address.

Here are some examples of the preceding techniques, given an IPv6 address of 2001:0001:0000:0000:00A1:0CC0:01AB:397A. Valid ways of shortening this address using the preceding rules include these:

/-■"••• 2001:1:0:0:A1:CC0:1AB:397A

(Topic 2001:0001::00A1:0CC0:0174AB:397A

2001:1::A1:CC0:1AB:397A

All of these abbreviated examples unambiguously represent the given address and can be independently interpreted by any IPv6 host as the same address.

Continue reading here: Pv6 Address Types

Was this article helpful?

0 0

Readers' Questions

  • Magnus Sackville
    Which ipv6 address notation is valid?
    1 month ago
  • There are several valid notations for representing IPv6 addresses. Here are a few examples:
    1. Colon-Hexadecimal Notation: This is the most commonly used notation for representing IPv6 addresses. It separates groups of 16-bit hexadecimal numbers with colons. Example: 2001:0db8:85a3:0000:0000:8a2e:0370:7334
    2. Abbreviated Notation: Leading zeros in each group of the IPv6 address can be omitted, and consecutive groups of zeros can be replaced with double colons (::) once in an address. Example: 2001:db8:85a3::8a2e:370:7334
    3. IPv4-Compatible Notation: IPv6 addresses can include an IPv4 address embedded within them, by using the last 32 bits of the IPv6 address to represent the IPv4 address. The notation is represented as ::IPv4_address. Example: ::ffff:192.0.2.128These are just a few examples of valid IPv6 address notations. It's important to note that, while these notations are valid, there are certain rules and guidelines that need to be followed when representing IPv6 addresses.
    • marco
      Which ipv6 address type is only valid within a subnet?
      7 months ago
    • Link-local address