TechKnowSurge
CompTIA Network+ 3.4 Cisco CCNA 1.9 Cisco CCNA 1.8 Cisco CCST Networking 2.3 CompTIA A+ Core 1 2.6
VideoNetworkFree

Assigning IPv6 Adresses

IPv6 eliminates the need for DHCP servers by using Stateless Address Autoconfiguration (SLAAC), a built-in mechanism that allows devices to generate and assign their own globally unique addresses. SLAAC is the preferred IPv6 address assignment method due to its simplicity, reduced infrastructure dependency, and lower configuration overhead.

Complete this video to capture a CTF flag worth 1 point.

About this video

IPv6 introduced a fundamentally different approach to address assignment, driven by the goal of reducing device dependence on centralized infrastructure. In IPv4 networks, DHCP operated at Layer 2 using broadcast messages to request and distribute addresses — a mechanism that does not translate to IPv6, which does not support broadcasts. This required a new set of solutions for how devices obtain usable addresses on an IPv6 network. Three methods are available for IPv6 address assignment. Static configuration is possible but impractical at scale given the length of IPv6 addresses. DHCPv6, the stateful option, replicates the centralized server model and gives a DHCPv6 server full control over address allocation. The third and preferred method is Stateless Address Autoconfiguration, commonly referred to as SLAAC. SLAAC is built directly into the IPv6 protocol, requiring no dedicated address management server. A device generates its own interface identifier, verifies its uniqueness on the local network through duplicate address detection, and then sends a Router Solicitation message to obtain the network prefix from a local router. Combining the router-supplied prefix with the device-generated interface identifier produces a globally unique IPv6 address. SLAAC also supports a hybrid mode in environments where a DHCP server is still needed for supplemental information such as DNS server addresses. In this stateless DHCPv6 configuration, the router handles address assignment through SLAAC while directing the device to a DHCPv6 server only for the additional configuration data it cannot provide directly. Because SLAAC minimizes reliance on any single piece of network infrastructure, reduces manual configuration, and is natively supported by IPv6, it represents the standard and recommended method for IPv6 address management in modern networks.

What you'll learn

What's covered

IPv6 Address Assignment

Aligned to

CompTIA Network+
3.4 Given a scenario, implement IPv4 and IPv6 network services.
Cisco CCNA
1.9 Describe IPv6 address types
1.8 Configure and verify IPv6 addressing and prefix
Cisco CCST Networking
2.3 Identify IPv6 addresses and prefix formats
CompTIA A+ Core 1
2.6 Compare and contrast common network configuration concepts.

Key terms

Stateless Address Autoconfiguration
SLAAC
An IPv6 mechanism that allows devices to automatically generate a globally unique IPv6 address using the network prefix from a Router Advertisement combined with a locally generated interface identifier, without requiring a DHCP server. SLAAC uses the EUI-64 process or a random interface ID to create the host portion of the address.
Dynamic Host Configuration Protocol
DHCP
A network protocol that automatically assigns IP addresses and other configuration parameters to devices on a network.
IP Address
A numerical label assigned to each device connected to a network that uses the Internet Protocol.
Router
A network device that forwards data packets between networks based on IP addresses.
Default Gateway
The router that a device uses to send traffic to destinations outside its local network.
Domain Name System
DNS
A hierarchical naming system that translates human-readable domain names into IP addresses.
Dynamic Host Configuration Protocol version 6
DHCPv6
An extension of DHCP for IPv6 networks that provides stateful IPv6 address assignment and delivers configuration options such as DNS server addresses to IPv6 clients. DHCPv6 can operate alongside SLAAC to supply options that Router Advertisements cannot carry.

Topics

Ipv6 Slaac Dhcpv6 Ip Address Management Networking

Transcript

As I mentioned in a prior video, when we came up with IPv6 we started recreating how this could function and what it can do, and one of the ideas behind this is we want devices to be self-sufficient and not have to rely on servers to get a bunch of information, where there are weak points. One of the ways that we've overcome this is that we've gotten rid of the DHCP server and have replaced it with SLAAC - stateless address autoconfiguration.

A flashback to DHCP

Let's do a little flashback to DHCP and figure out how IPv4 handed out its IP addresses. Then we can better understand some of the options that we have available with IPv6 and how we can hand out IPv6 addresses, or create IPv6 addresses.

DHCP is a protocol that's associated with IPv4. What it allowed was for a computer to attach to a network and then request - it would send out a broadcast and request an address - and then a DHCP server would then provide that address. It happened all on layer 2 as it was sent out, and it would be a broadcast. Well, that's not going to work with our IPv6, because we don't have broadcasts in IPv6.

Options for assigning IPv6 addresses

So then we asked the question: how do we assign IPv6 addresses to machines?

First of all, we can just statically assign addresses to the machines. We just go on to the machine and statically configure the machine with an IPv6 address. You can imagine this can be very cumbersome. It was cumbersome even with IPv4 addresses, and now that you have such long addresses with IPv6 it would just become very hard to manage that.

We also then have stateful DHCP version 6. So this is DHCP version 6, which means that you have a server that can hand out IP addresses to your machines, and there's a mechanism that will allow this DHCP version 6 to work. We're not going to talk about it here.

Then we have SLAAC, and SLAAC is that automatic assignment of these.

How SLAAC works

We have already looked at how a machine can come up with the host bits - that's the link local address, or the interface side of the address - on its own, and verify that there's no other devices that are on this network that have that address, and therefore it would be a unique address on this network. If the network itself is a unique address and the address on this machine is unique within this network, then you know globally that this address is a unique address.

So really all it needs to be able to know is, on the network, what is the subnet, or what is the network address of this network right here. What it will do is it will do that router solicitation and ask the router for that information, and the router will then send back information about what network it's on. It takes that information about what network it's on and that unique address that it has for that network, it combines them together, and now it has a unique address out there in the world. That is how SLAAC works.

But it has a lot of options to it, and you can do a lot of configurations, things like DNS, and you can configure routers and default gateways. So there's a lot of configurations that you can have on there.

Combining SLAAC with stateless DHCP

However, there are possibly situations where a DHCP server would actually serve that device better, and so in that case we can use both SLAAC and stateless DHCP. Stateful would mean that the DHCP server handled it all. Stateless DHCP means that this device actually gets most of its information from the router, but the pieces of information that it can't get, then it reaches out to the DHCP server. One of the pieces of information that this router would send back is: here is your information, but you will also need to reach out to the DHCP server to get some additional information.

Why SLAAC is the preferred method

So there you have it, it is the stateless address autoconfiguration. This stateless address autoconfiguration does just what we talked about, where a machine can take the information it gets back from the router to figure out the network portion of the address, and it has a mechanism to come up with the interface information, and combined, that will be enough information to get out to the real world.

This is the preferred method because it doesn't rely on any single piece of equipment that's out there. There's very little configuration that happens with this. What we call this is a stateless, where it is just self-serve, and so these devices can serve themselves. They just need that little piece of information and then they come up with those addresses. That's why it's stateless.

IPv6 does have a DHCP version 6 option, where you can use a DHCP server, but that is not the preferred method. The preferred method is to use this stateless address autoconfiguration, because that process is already built into IPv6, it's really simple to set up, it is less reliant on other equipment to make sure that things are connected correctly, there are less configurations, and there are less chances of things going wrong. So SLAAC really is the preferred method for setting up your devices with IPv6 addresses.

About TechKnowSurge

TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.

Explore free tools and programs →