Screenshot of IPv6 address configuration window on a laptop screen, showing options for automatic and manual setup.

Global IPv6 Unicast Addresses Configuration

Configuring global IPv6 addresses can feel difficult, but don’t worry—you are at the right place, and we will guide you step by step. Whether you’re a beginner setting up your first IPv6 network or a pro looking to refine your skills, this guide covers everything. We’ll break down the three main methods—manual configuration, Stateless Address Autoconfiguration (SLAAC), and DHCPv6, with practical examples, troubleshooting tips.


Why IPv6? A Quick Recap

IPv6 isn’t just an upgrade of IP addresses, it’s a necessity for the future of networking. With IPv4 addresses’ space running out faster, IPv6 steps in with its massive 128-bit address space. That’s enough to assign an IP address to every device on the planet (and beyond) a unique address. 


The Basics: What’s in a Global IPv6 Address?

​​TheInternet Assigned Numbers Authority (IANA) and the Internet Corporation for Assigned Names and Numbers (ICANN) allocate Global IPv6 address blocks to the five Regional Internet Registries (RIRs). Only global unicast addresses with the first three bits of 001 or 2000::/3 are assigned to various Internet address registries. This is a tiny portion of the available Global IPv6 addresses. A global IPv6 unicast address has three parts, which are illustrated in the figure below:-

Diagram of an IPv6 address labeled with three sections: Prefix (48 Bits), Subnet ID (16 Bits), and Interface ID (64 Bits). Each segment is color-coded for clarity.
Clear visualization of the IPv6 address components: Prefix, Subnet ID, and Interface ID.
  • Global routing prefix
  • Subnet ID
  • Interface ID

Global Routing Prefix is the network portion of the global IPv6 address, which the provider has assigned. RIRs assign a /48 global routing prefix to customers, as shown in the figure above. This can be used by everyone, from business networks to individual households. The figure illustrates the structure of a global unicast address using a /48 global routing prefix with a 16-bit subnet ID. 

An IPv6 address looks a bit intimidating at first—something like 2001:0db8:85a3:1234:2525:7a2e:a370:b334. It’s 128 bits long, split into eight groups of hexadecimal numbers. The first 64 bits typically represent the network prefix, while the last 64 bits are the interface identifier. This structure is key to how IPv6 works, and we’ll see it in action as we configure these addresses. The range of global IPv6 prefixes in the first hextet is 0010 0000 0000 (2000) to 0011 1111 1111 (3FFF).


IP Address Configuration on Cisco Routers

Method 1: Manual Configuration – Taking Control

If you can configure an IPv4 address on a router, then you can easily configure the IPv6 address, because there is not much difference between the configurations. You can assign a static IPv6 address to a device’s interface yourself, just as you would in IPv4 address assigning.

Simple Steps to do it 

Here’s a simple and step-by-step guide for configuring a global IPv6 address manually on a Cisco router:

  1. Log In: Access your device via SSH or using console cable. You can also access it using telnet, but we discourage it because it is not safe.
  2. Enter Config Mode: Type <configure terminal> to start making changes.
  3. Pick an Interface: For example, interface GigabitEthernet0/1.
  4. Set the Address: Use <ipv6 address 2001:db8::1/64> (adjust the address to your network’s prefix).
  5. Activate It: Run no shutdown to bring the interface online, just like assigning an IPv4 address to an interface.
  6. Check Your Work: Use the show <ipv6 interface brief> command to confirm everything’s set.

Real-World Example

Imagine you’re setting up a router for your small business. Here’s what the commands might look like:

After running this, you’d see the interface listed with 2001:db8::1. The original article included a similar Cisco example, assigning the address 2001:db8::1 with a /64 prefix. It’s satisfying to see it come to life, right?

When to Use It

Manual configuration is best when you are working in smaller networks or for critical devices. I once had to manually configure a server’s address because our monitoring tools needed a consistent IP—SLAAC just wouldn’t cut it there. But for a big network with dozens of devices? That’s when it gets tedious.


Method 2: SLAAC – Let Devices Figure It Out

Stateless Address Autoconfiguration (SLAAC) is IPv6’s gift to lazy network admins (and I mean that in the best way). Devices configure their own addresses automatically using info from the router—no babysitting required. I had already discussed how the SLAAC is working in my article Router Advertisement (RA) Messages in detail. Here is the summary I am sharing again, and then a detailed configuration command. 

How SLAAC Works

Here’s the magic:

  1. Router Talks: It sends Router Advertisement (RA) messages with the network prefix.
  2. Device Listens: The host grabs the prefix from the RA.
  3. Address Creation: It combines the prefix with an interface ID (often based on its MAC address).
  4. Safety Check: The device runs Duplicate Address Detection (DAD) to avoid conflicts.

Setting Up SLAAC on Your Router. 

On your router, you need to enable RA messages. Here’s a Cisco example:

The RA messages will be sent every 200 seconds with a 1800-second lifetime. Now, any device on that network can pick up the prefix 2001:db2::/64 and generate its address.

Why SLAAC is a beauty 

I’ve used SLAAC in home networks and also in a small office, it’s a beauty. Once, I set it up on a network, and within minutes, every device was online without me lifting a finger. It’s like the network configured itself while I grabbed a coffee.


Method 3: DHCPv6 – The Organized Approach

DHCPv6 is the big brother of IPv4’s DHCP, offering stateful address assignment with a server keeping tabs on everything. It’s perfect when you want control and automation. I have already discussed the working procedure ot the DHCPv6 in my article Router Advertisement (RA) Messages. Here is the summary of how it works, and then a detailed configuration command.

How It Goes Down

  1. Client Asks: The device sends a “Solicit” message to find a DHCPv6 server.
  2. Server Offers: It responds with an address and config details.
  3. Client Chooses: The device picks the offer and requests it.
  4. Server Locks It In: The address is assigned, along with extras like DNS info.

How to Configure DHCPv6 on Cisco Router

Step-1 – Enter to Global configuration mode and enable IPv6 unicast router

Step-2: Create a DHCPv6 Pool

Use address range 2001:db8:1::100 2001:db8:1::200 instead of address prefix for a specific range.

Add lifetime infinite infinite to the prefix/range for permanent leases (optional).

Step 3: Configure the Interface

Step 4: Verification Commands


Static Configuration of Global IPv6 Address on Host

Similarly, we can configure an IPv6 address on a host computer like an IPv4. For example, As shown in Figure, the IP address configured for the host is 2001: DA1: B111:: ABCD: BCD: 1 and the default gateway address is 2001: DA1: B111:: ABCD: BCD: 1. Both addresses are global unicast addresses. The router’s link-local address can also be configured as the host’s default gateway. Both configurations will work. Static address configuration for the host is best practice in a small network, but for a more extensive network, dynamic assignment of IPv6 address configuration is best.

Global IPv6 Unicast Addresses Manual Configuration
Global IPv6 Unicast Addresses Configuration 7

We can use dynamic IPv6 address configuration on host computers in two ways. The ways to configure IPv6 global unicast address automatically are Stateless Address Auto-Configuration (SLAAC) and Dynamic Host Configuration Protocol version 6 (DHCPv6). Using DHCPv6 or SLAAC, the local router’s link-local address will also automatically be specified as the default gateway address for the host.

Stateless Address Auto-Configuration (SLAAC)

It is a unique feature for IPv6 addresses that is not available in IPv4. Using SLAAC, the device can get an IPv6 address prefix, prefix length, default gateway address, and other information from an IPv6 router without using a DHCPv6 server. All Cisco devices have the capability of SLAAC, but by default, SLAAC does not provide anything to the client outside of an IPv6 address and a default gateway. Using SLAAC, devices rely on the local router’s ICMPv6 Router Advertisement (RA) messages to obtain the necessary information.

IPv6-enabled routers send out ICMPv6 RA messages, after every 200 seconds, to all IPv6-enabled devices on the network. RA messages have three options to automatically get an IPv6 address. An RA message will also be sent in response to a host sending an Internet Control Messaging Protocol version 6 (ICMPv6) Router Solicitation (RS) message. IPv6 routing is not enabled by default. We can allow IPv6 routing using the following commands.

[quizify id=”111151″]

FAQs

  • What’s the difference between global and link-local IPv6 addresses?

    A global IPv6 address lets your device connect worldwide, while a link-local address is just for local network chatter. Think global as your phone number and link-local as an intercom.

  • Can SLAAC and DHCPv6 work together?

    Absolutely! SLAAC can handle address assignment, while DHCPv6 adds extras like DNS servers. It’s called stateless DHCPv6—handy for hybrid setups.

  • How do I check if my device has a global IPv6 address?

    On Linux, try ip -6 addr show. For Cisco, use show ipv6 interface brief. You’ll see the address listed if it’s assigned.

  • Why isn’t SLAAC working on my network?

    Make sure your router’s sending RA messages with the right flags (like the A-bit). Also, check if the device is set to accept them—some OSes need tweaking.

  • Do I need to manually configure every device?

    Nope! Manual setup is just for devices needing static IPs, like servers. For most, SLAAC or DHCPv6 saves you the hassle.

  • How do I configure an IPv6 address automatically on Windows?

    Open the TCP/IPv6 Properties window, select “Obtain an IPv6 address automatically,” and ensure your network supports IPv6. Click OK to apply the settings.
  • What should I enter for the subnet prefix length in IPv6 setup?

    The subnet prefix length is typically 64 for most networks. It defines the network portion of the IPv6 address, so confirm with your network administrator if unsure.
  • Can I manually set a DNS server for IPv6 configuration?

    Yes, in the TCP/IPv6 Properties window, select “Use the following DNS server addresses” and enter your preferred DNS server, such as Google’s 2001:4860:4860::8888.

[quizify id=”111147″]

Avatar of Asad Ijaz

Asad Ijaz

NetworkUstad's lead networking architect with CCIE certification. Specializes in CCNA exam preparation and enterprise network design. Authored 2,800+ technical guides on Cisco systems, BGP routing, and network security protocols since 2018. Picture this: I'm not just someone who writes about tech; I'm a certified expert in the field. I proudly hold the titles of Cisco Certified Network Professional (CCNP) and Cisco Certified Network Associate (CCNA). So, when I talk about networking, I'm not just whistling in the dark; I know my stuff! My website is like a treasure trove of knowledge. You'll find a plethora of articles and tutorials covering a wide range of topics related to networking and cybersecurity. It's not just a website; it's a learning hub for anyone who's eager to dive into the world of bits, bytes, and secure connections. And here's a fun fact: I'm not a lone wolf in this journey. I'm a proud member and Editor of Team NetworkUstad. Together, we're on a mission to empower people with the knowledge they need to navigate the digital landscape safely and effectively. So, if you're ready to embark on a tech-savvy adventure, stick around with me, Asad Ijaz Khattak. We're going to unravel the mysteries of technology, one article at a time!"