SHOUTcast Server Hosting

IPv6 Subnetting Explained

Subnetting is a fundamental concept in networking, and while IPv4 subnetting may have been a challenge for many, IPv6 subnetting brings a breath of fresh air. With IPv6, subnetting becomes easier and more straightforward. No longer do you need to perform complex calculations to determine subnet start/end addresses, usable addresses, or the null route. IPv6 subnetting simply requires adding or chopping off digits and adjusting the prefix length by a multiple of four. In this blog post, we will delve into the simplicity and differences of IPv6 subnetting, exploring how you can effortlessly divide or combine subnets without the hassle of intricate calculations or concerns about broadcast addresses. Get ready to embrace the ease of IPv6 subnetting and unlock its full potential.

Understanding the intricacies of IP addressing is crucial in today's digital landscape. While IPv4 used a subnet mask in dotted quad notation, it was eventually replaced by CIDR masking. However, with the advent of IPv6, there is a notable shift in terminology. IPv6 does not employ a subnet mask but refers to it as a "Prefix Length," commonly known as the "Prefix." This blog delves into the differences between IPv4 subnet masks and IPv6 Prefix Lengths, highlighting their similarities in functionality. Whether you are a network administrator or simply interested in the subject, this article will provide valuable insights into the world of IP addressing.

IPv6 subnets can seem complex and overwhelming, but there is a simple trick that can make them much easier for humans to understand and differentiate. By using prefix lengths in multiples of four, designing and organizing subnets becomes a breeze. Whether you need a larger or smaller subnet, all it takes is adjusting the prefix by a multiple of four. To further assist you in this process, we have compiled a comprehensive IPv6 Subnet Table that lists all the possible IPv6 addresses, along with the number of IP addresses contained within each subnet. In this blog post, we will explore how using prefix lengths in multiples of four can greatly simplify the management of IPv6 subnets and enhance your overall understanding of this technology.

 

IPv6 Subnet Table

Prefix

Subnet Example

Total IP Addresses

# of /64 nets

4

x::

124

60

8

xx::

120

56

12

xxx::

116

52

16

xxxx::

112

48

20

xxxx:x::

108

44

24

xxxx:xx::

104

40

28

xxxx:xxx::

100

36

32

xxxx:xxxx::

96

4,294,967,296

36

xxxx:xxxx:x::

92

268,435,456

40

xxxx:xxxx:xx::

88

16,777,216

44

xxxx:xxxx:xxx::

84

1,048,576

48

xxxx:xxxx:xxxx::

80

65,536

52

xxxx:xxxx:xxxx:x::

76

4,096

56

xxxx:xxxx:xxxx:xx::

72

256

60

xxxx:xxxx:xxxx:xxx::

68

16

64

xxxx:xxxx:xxxx:xxxx::

64 (18,446,744,073,709,551,616)

1

68

xxxx:xxxx:xxxx:xxxx:x::

60 (1,152,921,504,606,846,976)

0

72

xxxx:xxxx:xxxx:xxxx:xx::

56 (72,057,594,037,927,936)

0

76

xxxx:xxxx:xxxx:xxxx:xxx::

52 (4,503,599,627,370,496)

0

80

xxxx:xxxx:xxxx:xxxx:xxxx::

48 (281,474,976,710,656)

0

84

xxxx:xxxx:xxxx:xxxx:xxxx:x::

44 (17,592,186,044,416)

0

88

xxxx:xxxx:xxxx:xxxx:xxxx:xx::

40 (1,099,511,627,776)

0

92

xxxx:xxxx:xxxx:xxxx:xxxx:xxx::

36 (68,719,476,736)

0

96

xxxx:xxxx:xxxx:xxxx:xxxx:xxxx::

32 (4,294,967,296)

0

100

xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:x::

28 (268,435,456)

0

104

xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xx::

24 (16,777,216)

0

108

xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxx::

20 (1,048,576)

0

112

xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx::

16 (65,536)

0

116

xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:x::

12 (4,096)

0

120

xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xx::

8 (256)

0

124

xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxx::

4 (16)

0

128

xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx

0 (1)

0

If auto configuration is desired, the smallest subnet that can be used locally is a standard size IPv6 subnet defined by the IETF, specifically, a /64.

In establishing service on the WAN, it is customary for an ISP to assign a subnet of /64 or smaller. On the other hand, for LAN use, an additional network is routed. The extent of the allocation is contingent on the ISP, however, it is not unusual for end users to be allotted a minimum of /64 and potentially even up to a /48.

Hurricane Electric, the operator of tunnelbroker.net, offers the provision of a /48 alongside a routed /64 subnet and a /64 interconnect.

In the case of larger assignments exceeding /64, it is common practice to allocate the initial /64 for local area network (LAN) implementation and divide the remaining pool of addresses according to specific needs, such as for establishing VPN tunnels, creating a DMZ, or setting up a guest network.

Special IPv6 Subnets

IPv6 provides reserved networks for special use. The Wikipedia IPv6 article contains a comprehensive list of these networks. Below, you will find six examples of special IPv6 networks along with their corresponding addresses in the section titled "IPv6 Special Networks and Addresses."

IPv6 Special Networks and Addresses

Network

Purpose

2001:db8::/32

Documentation prefix used for examples

::1

Localhost

fc00::/7

Unique Local Addresses (ULA) - also known as “Private” IPv6 addresses.

fe80::/10

Link Local addresses, only valid inside a single broadcast domain.

ff00::0/8

Multicast addresses

Neighbor Discovery

In the realm of local segments, IPv4 hosts establish connection with one another through the utilization of ARP broadcast messages. On the other hand, IPv6 hosts achieve the same purpose by means of dispatching Neighbor Discovery Protocol (NDP) messages. Commonly found within a particular broadcast domain, NDP, reminiscent of ARP, serves the purpose of locating other hosts within a designated subnet.

NDP, which stands for Neighbor Discovery Protocol, takes care of neighbor discovery, router solicitations, and route redirects in a manner similar to ICMP redirects in IPv4 by means of sending specialized ICMPv6 packets towards reserved multicast addresses.

In order for NDP to function, pfSense® software will automatically include firewall rules on interfaces that are IPv6 enabled. The firewall GUI located at Diagnostics > NDP Table provides visibility of all currently known IPv6 neighbors.

Router Advertisements

Instead of using DHCP, routers in IPv6 are discovered using Router Advertisement (RA) messages. Routers that can dynamically allocate addresses will broadcast their presence on the network and respond to requests for routers. When pfSense software is configured as a client for WAN interfaces, it will accept RA messages from upstream routers. On the other hand, when pfSense software is functioning as a router, it will send RA messages to clients on its internal networks. For further information, refer to Router Advertisements (Or: “Where is the DHCPv6 gateway option?”).

Address Allocation

Various methods, including static addressing through SLAAC (Router Advertisements (Or: “Where is the DHCPv6 gateway option?”)), DHCP6 (IPv6 Router Advertisements), or alternative tunneling methods such as OpenVPN, can be utilized to allocate client addresses.

DHCP6 Prefix Delegation

The rephrased text: Within the context of network configuration, DHCP6 Prefix Delegation refers to the provision of a routed IPv6 subnet to a DHCP6 client. To enable this, it is possible to configure a WAN type interface to receive a prefix via DHCP6 using the Track Interface mechanism. Additionally, a router positioned at the periphery of a sizeable network can offer prefix delegation to other routers within the network via DHCPv6 Prefix Delegation.