IP connectivityIntermediate22 min read

What Is SLAAC in Networking?

Reviewed byJohnson Ajibi· Senior Network & Security Engineer · MSc IT Security

This page mentions older exam versions. See the Current Exam Context and Legacy Exam Context sections below for the updated mapping.

On This Page

Quick Definition

SLAAC stands for Stateless Address Autoconfiguration. It is a feature of IPv6 that lets devices assign their own IP addresses automatically. The device listens for a router advertisement, then builds its address using the network prefix and its own interface identifier. It does not require a DHCP server to run, which makes it simpler for many networks.

Commonly Confused With

SLAACvsDHCPv6 (Stateful)

DHCPv6 stateful mode requires a DHCP server that assigns IPv6 addresses to clients and maintains a lease database. SLAAC does not use a server and does not keep any record of assigned addresses. SLAAC generates addresses locally, while DHCPv6 distributes addresses from a pool.

In stateful DHCPv6, the host sends a request and the server replies with an address and lease time. In SLAAC, the host builds its own address using the prefix from the router.

SLAACvsStateless DHCPv6

Stateless DHCPv6 provides additional network configuration parameters like DNS server addresses but does not assign IPv6 addresses. SLAAC assigns the address, and stateless DHCPv6 provides the rest. Sometimes they work together: SLAAC for the address, stateless DHCPv6 for DNS.

A host gets its IPv6 address via SLAAC, then contacts a DHCPv6 server only to learn the DNS server IP. The server does not track the address lease.

SLAACvsAPIPA (Automatic Private IP Addressing)

APIPA is an IPv4 mechanism that assigns a link-local address (169.254.x.x) when a DHCP server is unavailable. SLAAC is an IPv6 mechanism that assigns both link-local and global addresses. APIPA is a fallback; SLAAC is the primary addressing method for IPv6.

If a Windows PC cannot find a DHCP server on IPv4, it uses APIPA to get a 169.254.x.x address. In IPv6, the link-local address (FE80::/10) is always generated via SLAAC, even if a global address is also obtained via SLAAC.

SLAACvsEUI-64

EUI-64 is a method to create an interface identifier from a MAC address by inserting 'FF:FE' in the middle. SLAAC can use EUI-64 to form the full IPv6 address, but SLAAC is the overall process, while EUI-64 is just one way to generate the interface identifier part. SLAAC can also use random identifiers.

MAC address 00:12:34:56:78:9A becomes interface identifier 0212:34FF:FE56:789A via EUI-64. SLAAC combines this with a prefix to create the address.

Must Know for Exams

For IT certification exams, SLAAC is a high-yield topic because it tests your understanding of IPv6 fundamentals and the Neighbor Discovery Protocol. It appears in multiple exams, each with a specific angle.

In the CompTIA Network+ (N10-008 or N10-009), SLAAC falls under domain 1.3 'Explain the concepts and characteristics of routing and switching' and domain 1.4 'Given a scenario, configure the appropriate IP addressing components.' You may see multiple-choice questions that ask which IPv6 address configuration method is stateless and does not require a DHCP server. The correct answer is SLAAC. You might also be asked to identify the flags in a router advertisement that indicate SLAAC versus DHCPv6.

For the Cisco CCNA (200-301), SLAAC is a core objective under 'IPv6 addressing and basic configuration.' CCNA questions often require you to interpret show commands or debug output to determine whether SLAAC or DHCPv6 is being used on an interface. You could be asked to configure an interface to use SLAAC, or to troubleshoot why a host is not receiving an IPv6 address. Understanding that the 'ipv6 address autoconfig' command enables SLAAC on a Cisco router is essential.

The Juniper JNCIA-Junos exam also covers SLAAC, often in the context of interface configuration and the 'inet6' family. Questions may ask about the impact of the 'managed-configuration' flag or require you to interpret router advertisement options.

In the AWS Certified Advanced Networking – Specialty exam (though less direct), you may need to understand SLAAC to work with IPv6 in VPCs, as EC2 instances can use SLAAC for link-local addressing.

Common question patterns include: scenario-based questions where a host is not getting an IPv6 address and you must identify that the router is not sending RAs; comparison questions between SLAAC and DHCPv6; and flag interpretation questions where the M-bit is set to 1, indicating DHCPv6 is in use.

Memorizing the acronym SLAAC, understanding it is stateless, and knowing the role of Router Advertisements will help you answer these questions quickly and correctly. Always remember that if the question says 'stateless' and 'no DHCP,' the answer is SLAAC.

Simple Meaning

Imagine you move into a new neighborhood. In the old IPv4 world, to get your home address you would need to call a central office (like a DHCP server) and ask them to assign you one. They keep a record of all homes and make sure no two homes share the same address. That works, but it requires that central office to always be available.

SLAAC works differently. In IPv6, your device (like a laptop or phone) listens for a friendly announcement from the local router. That announcement tells the device what the network prefix is, basically the neighborhood street name and area code. The device then builds the rest of its own IP address by using a unique identifier, often based on its MAC address. It is like a new neighbor setting up a house number using their name or a fingerprint that is already unique.

The key word is stateless, the router does not keep track of which device got which address. The device is trusted to generate a unique address on its own. This is very efficient because no central server needs to be maintained just for handing out addresses. However, it also means the device must have a way to make sure its chosen address is not already in use (using Duplicate Address Detection).

In short, SLAAC gives your device the tools to build its own address using information from the router plus its own hardware uniqueness. It is a foundational part of how IPv6 networks operate, especially in simple home or small office setups where you do not want to manage a DHCP server.

Full Technical Definition

SLAAC is an integral component of the IPv6 protocol suite, defined in RFC 4862. It enables a host to automatically configure an IPv6 address on an interface without the need for a stateful address configuration protocol like DHCPv6. The process relies on the Neighbor Discovery Protocol (NDP), which uses Internet Control Message Protocol version 6 (ICMPv6) messages.

When an IPv6-enabled device boots up and connects to a network, it first performs Duplicate Address Detection (DAD) on its link-local address, which is automatically generated from the FE80::/10 prefix and an interface identifier (typically derived from the MAC address using the EUI-64 format). After completing DAD, the device sends a Router Solicitation (RS) message to the all-routers multicast address (FF02::2). The router on the network responds with a Router Advertisement (RA) message sent to the all-nodes multicast address (FF02::1). This RA contains critical information: the subnet prefix (typically a /64), the prefix lifetime, and flags such as the Managed Address Configuration flag (M-bit) and Other Configuration flag (O-bit). For pure SLAAC, both M-bit and O-bit are set to 0.

The device then concatenates the received prefix with its own interface identifier to form a 128-bit IPv6 address. For example, if the router advertises prefix 2001:DB8:1234:5678::/64 and the device has an interface identifier derived from its MAC, the resulting address might look like 2001:DB8:1234:5678:0212:34FF:FE56:789A. After forming the address, the device runs DAD again to ensure no other node on the link is using the same address. If the DAD passes, the address is assigned to the interface and is considered valid.

SLAAC is considered stateless because the router does not maintain any record of which addresses have been assigned. The device manages its own address lifecycle based on preferred and valid lifetimes advertised in the RA. SLAAC can be used in conjunction with stateless DHCPv6 for additional configuration parameters like DNS server addresses, but the core IP address configuration remains automatic and decentralized.

In real IT implementations, SLAAC is commonly enabled on home routers and small business networks. In larger enterprise environments, network administrators may disable SLAAC and use stateful DHCPv6 to maintain tighter control over address assignments and auditing. Understanding the interaction between the M-bit and O-bit is crucial for exam questions, as they determine whether SLAAC, DHCPv6, or a combination is being used.

Real-Life Example

Think of SLAAC like a new student arriving at a large school with many classrooms. In the old system (IPv4 with DHCP), the student would go to the main office, fill out a form, and be handed a specific locker number that the school keeps track of. The school knows exactly which student has which locker, and only the office can assign new lockers. That is organized but requires the main office to be open and staffed.

Now imagine a different school that uses SLAAC. When a new student arrives, each classroom already has a large sign on the door that says something like 'Building A, Floor 2, Room 201.' That is the network prefix. The student looks at that sign, then adds their own unique student ID number to it to create a full locker code, like 'BuildingA-Floor2-Room201-StudentID4567.' The student does not need to visit the main office because the locker is automatically reserved based on the classroom prefix and their own ID.

The school (network) does not keep a central list of who has which locker. It trusts that each student has a unique student ID, so no two students will pick the same code. If by chance two students did have the same ID (which is extremely rare), they would call out to each other (Duplicate Address Detection) and one would adjust.

This analogy maps directly to SLAAC: the classroom sign is the router advertisement giving the network prefix, the student ID number is the interface identifier derived from the MAC address, and the full locker code is the complete IPv6 address. The school's trust in the students to generate unique combinations mirrors the stateless nature of SLAAC, where no central server logs each assignment.

Why This Term Matters

SLAAC matters because it is a fundamental shift in how IP addresses are assigned in modern networks. As the world transitions from IPv4 to IPv6, understanding SLAAC becomes essential for any IT professional working with network configuration, troubleshooting, or security.

For IT practitioners, SLAAC reduces administrative overhead. In a typical home or small office, the router can automatically assign IPv6 addresses to every device without needing to maintain a DHCP server configuration. This means easier setup and less chance of misconfiguration. When a device connects to the network, it gets an address within seconds, which improves user experience.

In larger environments, knowing how SLAAC works helps in designing network policies. For example, an administrator might choose to disable SLAAC and rely on stateful DHCPv6 when they need strict audit trails or when they want to assign fixed addresses to servers. Conversely, SLAAC is ideal for guest networks or IoT deployments where many devices connect and disconnect frequently, because there is no central binding table to become stale.

Security is another major reason SLAAC matters. Because SLAAC does not use a central server, rogue devices can generate addresses without authentication. An attacker could spoof router advertisements and inject a malicious prefix, causing all devices to configure addresses pointing to an attacker-controlled router. Understanding this vulnerability is critical for network security professionals.

Finally, SLAAC is tested extensively in certification exams such as CompTIA Network+, Cisco CCNA, and Juniper JNCIA. Questions often require you to differentiate between SLAAC and DHCPv6, interpret router advertisement flags, or troubleshoot connectivity when SLAAC is misconfigured. Mastering SLAAC gives you a clear advantage in both the exam room and real-world network management.

How It Appears in Exam Questions

SLAAC appears in exam questions in several distinct patterns that test both conceptual understanding and practical troubleshooting.

Scenario-based questions are the most common. For example: 'A network administrator notices that IPv6-enabled hosts on a subnet are not receiving global unicast addresses. The hosts can communicate on the local link. What is the most likely cause?' The answer involves the router not sending Router Advertisements, or the RA having zero prefix information. Another scenario: 'An administrator wants to automatically assign IPv6 addresses to clients without maintaining a server. Which method should be used?' The correct answer is SLAAC.

Configuration-based questions appear in Cisco and Juniper exams. For instance, 'Which command enables SLAAC on a Cisco router interface?' The answer is 'ipv6 address autoconfig.' You might also be asked to complete a configuration snippet where the missing line enables the router to send RAs with the correct prefix.

Troubleshooting questions often involve Duplicate Address Detection. For example: 'A host generates an IPv6 address using SLAAC but cannot communicate. The output of 'show ipv6 interface' shows a 'duplicate' message. What is the problem?' The answer is that another device on the network already uses that address, and DAD failed.

Flag interpretation questions are frequent. The question might present a router advertisement with the M-bit set to 0 and the O-bit set to 1, and ask what address configuration method the host will use. The answer is SLAAC for the address, but DHCPv6 for other configuration like DNS. If both M-bit and O-bit are 0, the host uses only SLAAC for everything.

Comparison questions ask: 'What is a key difference between SLAAC and DHCPv6?' Possible answers include SLAAC does not require a server, SLAAC uses EUI-64 addressing, or DHCPv6 maintains a lease database. You must choose the correct differentiator.

Finally, some questions test your understanding of the interaction with privacy extensions. For example: 'A user wants to prevent IPv6 address tracking across networks. Which feature should be enabled along with SLAAC?' The answer is IPv6 privacy extensions (temporary addresses) as defined in RFC 4941.

By practicing these question types, you will be well prepared for any SLAAC-related item on your certification exam.

Practise SLAAC Questions

Test your understanding with exam-style practice questions.

Practise

Example Scenario

A small business owner, Maria, has just set up a new office network with an IPv6-capable router. She has 20 employees, each with a laptop and a smartphone. Maria wants all devices to get IPv6 addresses automatically so that she does not have to configure each one manually.

She decides to use SLAAC because it is simple and does not require a DHCP server. She connects the router to the ISP, which provides a /64 IPv6 prefix (e.g., 2001:DB8:CAFE:100::/64). The router is configured to send Router Advertisements every 200 seconds with this prefix.

When an employee turns on a laptop, the laptop immediately sends a Router Solicitation message to the all-routers multicast address. The router responds with a Router Advertisement containing the prefix 2001:DB8:CAFE:100::/64 and the flag settings (M-bit=0, O-bit=0). The laptop then takes its own MAC address, converts it into EUI-64 format, and combines it with the prefix to form a full IPv6 address, for example 2001:DB8:CAFE:100:0212:34FF:FE56:789A.

Before using the address, the laptop performs Duplicate Address Detection. It sends a Neighbor Solicitation for the tentative address. No other device responds, so the laptop assigns the address and begins communicating on the network.

One day, a new employee brings a company-issued tablet and connects to the Wi-Fi. The tablet goes through the same process and gets its own unique address. Because all devices use SLAAC, Maria never needs to log into a DHCP server or worry about address conflicts unless two devices somehow have the same MAC address (which is virtually impossible).

However, Maria realizes that her employees need DNS server information to access websites by name. Since SLAAC only provides the address, she configures the router to include DNS options in the Router Advertisement, or she enables stateless DHCPv6 to supply the DNS server IP. This combination ensures full network functionality without the complexity of stateful address assignment.

Common Mistakes

Thinking SLAAC requires a DHCP server.

SLAAC is explicitly stateless and does not use any DHCP server for address assignment. The address is generated locally using the prefix from the router advertisement and the device's own interface identifier.

Remember: SLAAC = Stateless = No DHCP server needed for addresses. The router only sends prefix information, not addresses.

Confusing SLAAC with DHCPv6 because both assign IPv6 addresses automatically.

The method is fundamentally different. SLAAC uses Neighbor Discovery Protocol and does not maintain a lease database, while DHCPv6 uses a client-server model with leases.

SLAAC is like building your own address from available materials. DHCPv6 is like renting a pre-built address from a landlord who keeps records.

Believing SLAAC works in IPv4 networks.

SLAAC is an IPv6-only mechanism. IPv4 does not have Neighbor Discovery Protocol or the ability to derive an address from a MAC in the same way.

SLAAC is exclusive to IPv6. For IPv4 autoconfiguration, use DHCP or APIPA (Automatic Private IP Addressing).

Assuming SLAAC always uses the MAC address to create the interface identifier.

By default, some operating systems use EUI-64 derived from MAC, but many modern systems (like Windows and recent Linux) use random interface identifiers for privacy (RFC 4941).

SLAAC can use either EUI-64 or randomly generated interface identifiers. Privacy extensions change how the interface identifier is created, not the SLAAC process itself.

Thinking that setting the M-bit to 1 enables SLAAC.

The M-bit (Managed Address Configuration flag) indicates that the host should use stateful DHCPv6 for address assignment. When M-bit is 1, the host does NOT use SLAAC for addresses.

M-bit = 0 means SLAAC for addresses. M-bit = 1 means DHCPv6 for addresses. O-bit = 1 means DHCPv6 for other configuration (like DNS), even if M-bit is 0.

Exam Trap — Don't Get Fooled

{"trap":"On an exam question, they describe a router advertisement with the M-bit set to 0 and the O-bit set to 1. They ask: 'Which address configuration method will the host use?' and the options include 'SLAAC only,' 'DHCPv6 only,' 'SLAAC for address, DHCPv6 for other info,' and 'Neither.'

Many learners see M-bit=0 and immediately choose 'SLAAC only,' forgetting that the O-bit tells the host to use DHCPv6 for other configuration parameters.","why_learners_choose_it":"They focus on the M-bit because it directly relates to address configuration. They either do not know about the O-bit or they assume that if M-bit is 0, everything comes from SLAAC.

Exam objectives often emphasize the M-bit, so learners memorize only that part.","how_to_avoid_it":"Always consider both flags together. M-bit and O-bit work as a pair. M-bit=0 and O-bit=1 means SLAAC for the IP address, but DHCPv6 for DNS, domain name, and other settings.

Practice this combination until it becomes automatic. Use a mnemonic: 'M for Main address, O for Other stuff.'

Step-by-Step Breakdown

1

Step 1: Device Connects to Network

The host (laptop, phone, etc.) connects to the network and brings up its IPv6 interface. It automatically generates a link-local address (FE80::/10) using its MAC address or a random identifier. This address is used only for communication within the same network segment.

2

Step 2: Duplicate Address Detection (DAD) for Link-Local

Before using the link-local address, the host performs DAD by sending a Neighbor Solicitation message to the tentative address. If no other device responds, the address is considered unique and will be used. If a duplicate is found, a different identifier is generated.

3

Step 3: Router Solicitation (RS)

The host sends a Router Solicitation (RS) message to the all-routers multicast address (FF02::2). This message essentially asks, 'Are there any routers on this network? Please send me the network prefix information.'

4

Step 4: Router Advertisement (RA) Received

The router responds with a Router Advertisement (RA) sent to the all-nodes multicast address (FF02::1). This RA contains the subnet prefix (e.g., 2001:DB8:1234:5678::/64), the prefix lifetime, and flag bits (M-bit and O-bit). If both flags are 0, the host knows to use SLAAC for address configuration.

5

Step 5: Host Generates Full IPv6 Address

The host extracts the prefix from the RA and combines it with its own interface identifier (EUI-64 or random) to form a complete 128-bit IPv6 address. For example, prefix + :: + interface identifier = full global unicast address.

6

Step 6: Duplicate Address Detection (DAD) for Global Address

Before fully assigning the new address, the host performs DAD again for this global unicast address. It sends a Neighbor Solicitation to the tentative address and waits for a response. If no response, the address is unique and is assigned to the interface.

7

Step 7: Address Assigned and Communication Begins

The host configures the address on its interface. It can now communicate using both its link-local address and this new global unicast address. The address has a preferred lifetime and a valid lifetime; after the preferred lifetime expires, the host should stop using the address for new connections but can still accept packets for it until the valid lifetime ends.

Practical Mini-Lesson

In real-world networking, SLAAC is both powerful and subtle. As an IT professional, you will encounter SLAAC in everything from home routers to large enterprise IPv6 deployments. Understanding its practical implementation helps you configure, troubleshoot, and secure networks effectively.

When configuring a router to use SLAAC, the key is to enable IPv6 unicast routing and then configure the interface with an IPv6 address and the command to send Router Advertisements. On Cisco routers, this is done with 'ipv6 unicast-routing' globally, then 'ipv6 address <prefix>::/64 eui-64' or 'ipv6 address autoconfig' on the interface. The 'ipv6 nd prefix <prefix> <lifetime>' command allows fine-tuning of the advertised prefix. For Juniper, you set 'family inet6' and configure 'prefix-delegation' or 'advertise-prefix' under the interface.

One of the most common problems with SLAAC is that DNS server information is not included in the basic RA. This means that while hosts get an IP address, they cannot resolve domain names unless you also configure stateless DHCPv6 or include DNS options in the RA using 'ipv6 nd ra dns server' (Cisco). In Windows networks, hosts often fail to browse the internet because SLAAC gave them an address but no DNS server. Always check if the RA includes DNS options.

Another practical issue is privacy. Because EUI-64 based addresses embed the MAC address, they can be used to track a device across different networks. Modern operating systems (Windows 10+, macOS, Linux) enable privacy extensions by default, which generate temporary random addresses for outgoing connections. As an administrator, you should be aware that even though the link-local address may remain constant, the global address used for internet traffic may change periodically. This can affect logging and security policies.

Troubleshooting SLAAC often involves checking that the router is sending RAs. Use 'debug ipv6 nd' on Cisco or 'monitor traffic interface <name>' on Juniper to confirm RA transmission. On the host side, you can use 'ipconfig /all' on Windows or 'ip addr show' on Linux to see if an IPv6 address with the correct prefix is present. If not, check if the router advertisement flags are correct. If the M-bit is set to 1, SLAAC will not generate an address; instead, the host will wait for DHCPv6.

SLAAC can also cause security vulnerabilities. A rogue device could send fake RAs with a different prefix, causing all hosts to configure addresses that route traffic through the attacker (a classic man-in-the-middle attack). To mitigate this, implement RA Guard (RFC 6105) on switches to block unauthorized RAs, or use Secure Neighbor Discovery (SEND) with certificates.

professionals need to master SLAAC configuration, understand the interaction with DHCPv6, verify DNS delivery, manage privacy implications, and secure the network against RA spoofing. This knowledge will make you effective in both small and large IPv6 environments.

Memory Tip

SLAAC = 'Silly Little Autoconfiguration Always Creates', Stateless, Local, Autonomous, Address Creation. It does not need a server.

Covered in These Exams

Current Exam Context

Current exam versions that test this topic — use these objectives when studying.

Legacy Exam Context

Older materials may mention these exam versions, but learners should use the current objectives for their target exam.

N10-008N10-009(current version)

Related Glossary Terms

Frequently Asked Questions

Does SLAAC work on IPv4?

No, SLAAC is exclusive to IPv6. IPv4 uses DHCP or APIPA for automatic address assignment, not SLAAC.

Can SLAAC give me a DNS server address?

Basic SLAAC does not provide DNS server information. You need to configure the router to include DNS options in the RA, or use stateless DHCPv6 to supply DNS details.

Is SLAAC secure?

SLAAC can be vulnerable to rogue router advertisements. An attacker can send fake RAs to redirect traffic. Security measures like RA Guard and Secure Neighbor Discovery (SEND) help mitigate this risk.

What does 'stateless' mean in SLAAC?

Stateless means the router does not keep track of which addresses have been assigned. Each device generates its own address and manages its own lifecycle. There is no central lease database.

How do I know if my device is using SLAAC?

On Windows, run 'ipconfig /all' and look for an IPv6 address with a prefix other than FE80. On Linux, run 'ip addr show' and check for addresses with a global scope. If no DHCP client is running, it is likely SLAAC.

What happens if two devices generate the same SLAAC address?

Duplicate Address Detection (DAD) prevents this. Before using an address, the device sends a neighbor solicitation. If another device responds, the address is considered a duplicate and a new identifier is generated.

Can I disable SLAAC on my network?

Yes. You can disable SLAAC by setting the M-bit to 1 in the router advertisement, which tells hosts to use stateful DHCPv6 instead. You can also stop sending RAs entirely, but then hosts will only have link-local addresses.

Summary

SLAAC (Stateless Address Autoconfiguration) is an IPv6 mechanism that allows devices to automatically generate their own IP addresses without relying on a DHCP server. It uses the Neighbor Discovery Protocol to receive a network prefix from a router advertisement and then combines that prefix with an interface identifier (based on MAC address or random) to create a full 128-bit IPv6 address. The process includes Duplicate Address Detection to ensure uniqueness.

SLAAC is a fundamental concept for any IT professional working with IPv6 because it simplifies address assignment, reduces administrative overhead, and scales well in environments with many transient devices. However, it also introduces security considerations and requires careful management of DNS configuration and privacy extensions.

In certification exams, SLAAC appears in multiple-choice, scenario-based, and troubleshooting questions. You must be able to differentiate it from DHCPv6, interpret router advertisement flags (M-bit and O-bit), and understand the role of DAD. Common pitfalls include confusing SLAAC with DHCPv6 and overlooking the O-bit combination.

Mastering SLAAC not only helps you pass exams like CompTIA Network+, Cisco CCNA, and Juniper JNCIA but also equips you with the practical knowledge to design and troubleshoot real-world IPv6 networks.