Understanding IPv6 Addressing: A Comprehensive Guide, Summaries of Network Theory

A comprehensive overview of ipv6 addressing, covering its structure, types, and configuration methods. It explains the need for ipv6 due to ipv4 address exhaustion and discusses migration techniques like dual stack, tunneling, and translation. The document details ipv6 address representation, including rules for shortening addresses, and explores unicast, multicast, and anycast address types. It further elaborates on global unicast addresses (gua), link-local addresses (lla), and unique local addresses (ula), along with dynamic addressing methods such as slaac and stateful dhcpv6. The document also covers interface id generation, ipv6 multicast addresses, and subnetting techniques, making it a valuable resource for understanding ipv6 networks.

Typology: Summaries

2024/2025

Available from 08/31/2025

emihle-1
emihle-1 🇿🇦

1 document

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
IPv6 Addressing
IPv4 Issues and the Need for IPv6
IPv4 is running out of addresses. IPv6 is the successor to IPv4 and has a much larger 128-bit
address space.
The development of IPv6 also included fixes for IPv4 limitations and other enhancements.
IPv4 and IPv6 Coexistence: Both IPv4 and IPv6 will coexist in the near future, and the
transition will take several years.
Migration Techniques:
Dual Stack: Devices run both IPv4 and IPv6 protocol stacks simultaneously.
Tunneling: A method of transporting an IPv6 packet over an IPv4 network. The IPv6
packet is encapsulated inside an IPv4 packet.
Translation: Network Address Translation 64 (NAT64) allows IPv6-enabled devices to
communicate with IPv4-enabled devices using a translation technique similar to NAT for
IPv4.
Tunneling and translation are for transitioning to native IPv6 and should only be used where
needed. The goal should be native IPv6 communications from source to destination.
IPv6 Address Representation
IPv6 addresses are 128 bits in length and written in hexadecimal.
IPv6 addresses are not case-sensitive and can be written in either lowercase or uppercase.
The preferred format for writing an IPv6 address is X:X:X:X:X:X:X:X, with each "x" consisting of
four hexadecimal values.
In IPv6, a hextet is the unofficial term used to refer to a segment of 16 bits, or four
hexadecimal values.
Rules for Shortening IPv6 Addresses
Rule 1 - Omit Leading Zero: The first rule to help reduce the notation of IPv6 addresses is to
omit any leading 0s (zeros).
Example: 01ab can be represented as 1ab
Note: This rule only applies to leading 0s, NOT to trailing 0s.
Rule 2 - Double Colon: A double colon (::) can replace any single, contiguous string of one or
more 16-bit hextets consisting of all zeros.
Example: 2001:db8:cafe:1:0:0:0:1 (leading 0s omitted) could be represented as
2001:db8:cafe:1::1
Note: The double colon (::) can only be used once within an address.
IPv6 Address Types
Unicast: Unicast uniquely identifies an interface on an IPv6-enabled device.
Multicast: Multicast is used to send a single IPv6 packet to multiple destinations.
Anycast: This is any IPv6 unicast address that can be assigned to multiple devices. A packet
sent to an anycast address is routed to the nearest device having that address.
pf3
pf4

Partial preview of the text

Download Understanding IPv6 Addressing: A Comprehensive Guide and more Summaries Network Theory in PDF only on Docsity!

IPv6 Addressing

IPv4 Issues and the Need for IPv

IPv4 is running out of addresses. IPv6 is the successor to IPv4 and has a much larger 128-bit address space. The development of IPv6 also included fixes for IPv4 limitations and other enhancements. IPv4 and IPv6 Coexistence: Both IPv4 and IPv6 will coexist in the near future, and the transition will take several years. Migration Techniques: Dual Stack: Devices run both IPv4 and IPv6 protocol stacks simultaneously. Tunneling: A method of transporting an IPv6 packet over an IPv4 network. The IPv packet is encapsulated inside an IPv4 packet. Translation: Network Address Translation 64 (NAT64) allows IPv6-enabled devices to communicate with IPv4-enabled devices using a translation technique similar to NAT for IPv4. Tunneling and translation are for transitioning to native IPv6 and should only be used where needed. The goal should be native IPv6 communications from source to destination.

IPv6 Address Representation

IPv6 addresses are 128 bits in length and written in hexadecimal. IPv6 addresses are not case-sensitive and can be written in either lowercase or uppercase. The preferred format for writing an IPv6 address is X:X:X:X:X:X:X:X, with each "x" consisting of four hexadecimal values. In IPv6, a hextet is the unofficial term used to refer to a segment of 16 bits, or four hexadecimal values.

Rules for Shortening IPv6 Addresses

Rule 1 - Omit Leading Zero: The first rule to help reduce the notation of IPv6 addresses is to omit any leading 0s (zeros). Example: 01ab can be represented as 1ab Note: This rule only applies to leading 0s, NOT to trailing 0s. Rule 2 - Double Colon: A double colon (::) can replace any single, contiguous string of one or more 16-bit hextets consisting of all zeros. Example: 2001:db8:cafe:1:0:0:0:1 (leading 0s omitted) could be represented as 2001:db8:cafe:1:: Note: The double colon (::) can only be used once within an address.

IPv6 Address Types

Unicast: Unicast uniquely identifies an interface on an IPv6-enabled device. Multicast: Multicast is used to send a single IPv6 packet to multiple destinations. Anycast: This is any IPv6 unicast address that can be assigned to multiple devices. A packet sent to an anycast address is routed to the nearest device having that address.

Note: Unlike IPv4, IPv6 does not have a broadcast address. However, there is an IPv6 all- nodes multicast address that essentially gives the same result. IPv6 Prefix Length: Prefix length is represented in slash notation and is used to indicate the network portion of an IPv6 address. The IPv6 prefix length can range from 0 to 128. The recommended IPv6 prefix length for LANs and most other types of networks is /64.

IPv6 Unicast Addresses

Global Unicast Address (GUA): This is similar to a public IPv4 address. These are globally unique, internet-routable addresses. Link-local Address (LLA): Required for every IPv6-enabled device and used to communicate with other devices on the same local link. LLAs are not routable and are confined to a single link. Unique Local Address (ULA): Range fc00::/7 to fdff::/7. Used for local addressing within a site or between a limited number of sites. Not globally routed or translated to a global IPv address.

IPv6 GUA Structure

Global Routing Prefix: The prefix, or network, portion of the address that is assigned by the provider, such as an ISP, to a customer or site. Subnet ID: The area between the Global Routing Prefix and the Interface ID. The Subnet ID is used by an organization to identify subnets within its site. Interface ID: The IPv6 interface ID is equivalent to the host portion of an IPv4 address. It is strongly recommended that in most cases /64 subnets should be used, which creates a 64- bit interface ID.

IPv6 LLA

An IPv6 link-local address (LLA) enables a device to communicate with other IPv6-enabled devices on the same link and only on that link (subnet). Packets with a source or destination LLA cannot be routed. Every IPv6-enabled network interface must have an LLA. If an LLA is not configured manually on an interface, the device will automatically create one. IPv6 LLAs are in the fe80::/10 range. GUA and LLA Static Configuration Static GUA Configuration on a Router: The command to configure an IPv6 GUA on an interface is: ipv6 address ipv6-address/prefix-length. Static GUA Configuration on a Windows Host: Manually configuring the IPv6 address on a host is similar to configuring an IPv4 address. Static LLA Configuration: LLAs can be configured manually using the ipv6 address ipv6-link- local-address link-local command. Dynamic Addressing for IPv6 GUAs

IPv6 multicast addresses have the prefix ff00::/8. There are two types of IPv6 multicast addresses: Well-known multicast addresses Solicited node multicast addresses Note: Multicast addresses can only be destination addresses and not source addresses.

Types of IPv6 Multicast Addresses

Well-known IPv6 Multicast Addresses: Assigned and are reserved for predefined groups of devices. ff02::1 All-nodes multicast group: This is a multicast group that all IPv6-enabled devices join. ff02::2 All-routers multicast group: This is a multicast group that all IPv6 routers join. Solicited-Node IPv6 Multicast: A solicited-node multicast address is similar to the all-nodes multicast address. A solicited-node multicast address is mapped to a special Ethernet multicast address. Subnet an IPv6 Network IPv6 was designed with subnetting in mind. A separate subnet ID field in the IPv6 GUA is used to create subnets.

IPv6 Subnetting Example

Given the 2001:db8:acad::/48 global routing prefix with a 16-bit subnet ID. Allows 65,536 /64 subnets. Only the subnet ID hextet is incremented in hexadecimal for each subnet. Example: 2001:db8:acad:0000::/ 2001:db8:acad:0001::/ 2001:db8:acad:0002::/ ... 2001:db8:acad:ffff::/