IPv6

TermDefinition

Global-Unicast

An IPv6 address type that is publicly routable and can be used in the internet.

Unique-Local

An IPv6 address type that indicates the IP address is a private IP address.

Link-Local

An IPv6 address type that indicates that the IP address was configured by default.

Multicast

An IPv6 address type that indicates that the packet is addressed to a number of hosts on the network, but not all hosts.

Prefix ID

The leftmost bits of the IPv6 address, also know as the network ID. The prefix is used for routing IPv6 packets.

Interface ID

The rightmost bits of the IPv6 address used to uniquely identify a network card (interface) in a host.

IPv6 Address Rules

IPv6 follows the same basic rules as IPv4.

  • Each host on the same logical network must have the same network address.

  • Hosts can communicate directly only with other hosts on the same logical network.

  • Each host must have a unique IPv6 address.

  • Each host on the same logical network must have the same network address.

  • Hosts can only communicate directly with other hosts on the same logical network.

IPv6 Address Structure

The following table describes the structure of an IPv6 address.

ComponentDescription

Format

IPv6 uses a 128-bit address made up of 32 hexadecimal numbers organized into eight quartets.

  • The quartets are separated by colons.

  • Each quartet is represented as a hexadecimal number between 0 and FFFF.

  • Each quartet represents 16 bits of data (FFFF = 1111 1111 1111 1111).

Leading Zeros

Leading zeros can be omitted in each section. For example, the quartet 0284 could also be represented by 284.

  • Addresses with consecutive zeros can be expressed more concisely by substituting double colons for the group of zeros. For example:

    • FEC0:0:0:0:78CD:1283:F398:23AB

    • FEC0::78CD:1283:F398:23AB (concise form)

  • If an address has more than one consecutive location where one or more quartets are all zeros, only one location can be abbreviated. For example, FEC2:0:0:0:78CA:0:0:23AB could be abbreviated as either one of the following:

    • FEC2::78CA:0:0:23AB

    • FEC2:0:0:0:78CA::23AB

  • FEC2::78CA::23AB is not a valid IPv6 address.

Prefix

  • The first 64 bits are known as the prefix. The prefix is equivalent to the IPv4 network ID.

    • The prefix can be divided into various parts that identify things such as geographic region, the ISP, the network, and the subnet.

    • The prefix length identifies the number of bits in the relevant portion of the prefix. To indicate the prefix length, add a slash (/) followed by the prefix length number. Full quartets with trailing 0s in the prefix address can be omitted (e.g., 2001:0DB8:4898:DAFC::/64).

    • IPv6 addresses are allocated based on physical location, and the prefix includes the global routing information.

    • Because addresses are allocated based on physical location, the prefix generally identifies the location of the host. The 64-bit prefix is often referred to as the global routing prefix.

    • Routers can be configured to announce the prefix.

    • Subnetting can be performed with the same formulas as IPv4.

Interface ID

  • The last 64 bits make up the interface ID.

    • The interface ID is the unique address assigned to an interface.

    • Clients can use a randomly generated host address or the Extended Unique Identifier 64 (EUI-64).

    • Each host has a unique 48-bit hardware address called a MAC address (also called the burned-in address) that is assigned to each device by the vendor. The MAC address is guaranteed to be unique through design. The EUI-64 format uses the unique MAC address by:

      1. Splitting the MAC address into 24-bit halves.

      2. Inserting 16 bits (represented by hex FFFE) between the two halves.

  • For example, a host with a MAC address of 20-0C-FB-BC-A0-07 would start with the following EUI-64 interface ID: 200C:FBFF:FEBC:A007.

  • To be complete, the EUI-64 format requires setting the seventh bit in the first byte to binary 1 (reading from left to right, this is the second hex value in the interface ID). This bit is called the universal/local (U/L) bit.

    • When the U/L bit is set to 0, the MAC address is a burned-in MAC address.

    • When the U/L bit is set to 1, the MAC address has been configured locally. EUI-64 requires the U/L bit to be set to 1.

    Review the following examples:

    • 200C:FBFF:FEBC:A007 (Incorrect interface ID, as the U/L bit is still set to 0)

    • 220C:FBFF:FEBC:A007 (Correct interface ID)

      1. Addresses are assigned to interfaces (network connections), not to the host. Technically, the interface ID is not a host address.

IPv6 Address Facts

When using IPv6, be aware that:

  • The IPv6 loopback address is ::1.

  • IPv6 eliminates the need for DHCP to issue IP addresses. DHCP is needed only to provide additional information, such as the DNS server information.

  • IPv6 makes it possible for each device to have a publicly registered address. Having a unique address for each device removes the need for NAT and PAT.

IPv6 Address Types

The following table compares IPv6 address types with IPv4 address types:

IPv4 AddressIPv6 AddressIPv6 Starts With

Public Addresses

Global-Unicast

2 or 3

Private IP Addresses

Unique-Local

FC or FD

APIPA

Link-Local

FE8

Multicast

Multicast

FF

Keep in mind the following about addressing types:

  • A Unique-Local, previously referred to as Site-Local, address type indicates a private IP Address.

  • A Link-Local address type indicates that the IP address was configured by default. Link-Local addresses are only valid for communications within the network segment (link) or the broadcast domain that the host is connected to.

  • Multicast indicates that the packet is addressed to a number of hosts on the network, but not all hosts.

IPv6 Features

FeatureDescription

Auto-configuration

Because hardware IDs are used for node IDs, IPv6 nodes simply need to discover their network IDs. This can be done by communicating with a router.

Built-in Quality of Service

Built-in support for bandwidth reservations makes guaranteed data transfer rates possible. (Quality of service features are available as add-ons within an IPv4 environment but are not part of the native protocol.)

Built-in Security Features

IPv6 has built-in support for security protocols such as IPsec. (IPsec security features are available as add-ons within an IPv4 environment.)

Source Intelligent Routing

IPv6 nodes have the option to include addresses that determine part or all of the route a packet will take through the network.

Configuration Methods

An IPv6 address can be configured using any of the following methods:

MethodDescription

Static Full Assignment

The entire 128-bit address and all other configuration information is statically assigned to the host.

Static Partial Assignment

The prefix is statically assigned, and the interface ID is derived from the MAC address.

Stateless Autoconfiguration

Clients automatically generate the interface ID and learn the subnet prefix and default gateway through the Neighbor Discovery Protocol (NDP). NDP uses the following messages for autoconfiguration:

  • A Router solicitation (RS) is a message sent by the client requesting that routers respond.

  • A Router advertisement (RA) is a message sent by the router both periodically periodically and in response to RS messages, informing clients of the IPv6 subnet prefix and the default gateway address.

Hosts also use NDP to discover the addresses of other interfaces on the network, removing the need for the Address Resolution Protocol (ARP).

NDP provides enough information for the addressing of the client and for clients to learn the addresses of other clients on the network. It does not provide the client with DNS server information or any other IP configuration information besides the IP address and the default gateway.

DHCPv6

IPv6 uses an updated version of DHCP (called DHCPv6) that operates in one of two modes:

  • Stateful DHCPv6 provides each client an IP address, default gateway, and other IP configuration information (such as the DNS server IP address). The DHCP server tracks the status (or state) of the client.

  • Stateless DHCPv6 does not provide the client an IP address and does not track the status of each client. It is instead used to supply the client with the DNS server IP address. Stateless DHCPv6 is most useful when used in conjunction with stateless autoconfiguration.

IPv6 Configuration Process

When a host starts up, it uses the following process to configure the IPv6 address for each interface:

  1. The host generates an IPv6 address using the link-local prefix (FE80::/10) and modifies the MAC address to get the interface ID. For example, if the MAC address is 20-0C-FB-BC-A0-07, the link-local address for the interface would be FE80::220C:FBFF:FEBC:A007.

  2. The host sends a neighbor solicitation (NS) message addressed to its own link-local address to see if the address it has chosen is already in use.

    • If the address is in use, the other network host responds with a neighbor advertisement (NA) message. The process stops, and manual configuration of the host is required.

    • If the address is not in use (no NA message is received), the process continues.

  3. The host waits for an RA message from a router to learn the prefix.

    • If an RA message is not received, the host sends an RS message addressed to all routers on the subnet using the multicast address FF02::2.

    • The router sends an RA message addressed to all interfaces on the subnet using the multicast address FF02::1.

    • If no routers respond, the host attempts to use stateful DHCPv6 to receive configuration information.

  4. The RA message contains information that identifies how the IPv6 address and other information should be configured. The following table shows possible combinations:

    Configuration MethodDescription

    Stateful Autoconfiguration

    Obtains the interface ID, subnet prefix, default gateway, and other configuration information from a DHCPv6 server.

The host sends out a REQUEST message addressed to the multicast address FF02::1:2, requesting this information from the DHCPv6 server.

Stateless Autoconfiguration

Sets the interface ID automatically. Obtains the subnet prefix and default gateway from the RA message. Obtains DNS and other configuration information from a DHCPv6 server.

  • The host sends out an INFORMATION-REQUEST message addressed to the multicast address FF02::1:2, requesting this information from the DHCPv6 server.

  • If a manual address or stateful autoconfiguration is used, the host sends an NS message to make sure the address is not already in use. If stateless autoconfiguration is used, the NS message at this step is unnecessary because the interface ID was verified in step 2.

Task Summary Actions

Use 2620:14F0:45EA:0001:192:168:0:10 as the IPv6 address on the vEthernet (External) network adapterUse 64 as the subnet prefix length for the IPv6 addressExplanation

Complete this lab as follows:

  1. In the notification area, right-click the Network icon and select Open Network and Sharing Center.

  2. On the left, select Change adapter settings.

  3. Right-click the vEthernet (External) adapter and select Properties.

  4. Select Internet Protocol Version 6 (TCP/IPv6).

  5. Select Properties.

  6. Select Use the following IPv6 address.

  7. In the IPv6 address field, enter 2620:14F0:45EA:0001:192:168:0:10 as the IPv6 address.

  8. In the Subnet prefix length field, enter 64.

  9. Click OK.

  10. Click Close.

  11. In the Search the web and Windows field, enter cmd.

  12. Under Best match, right-click Command Prompt and select Run as Administrator.

  13. At the command prompt, type ipconfig /all and press Enter to view the IPv6 address.

Last updated