Enabling IPv6 unicast routing on a Cisco Layer 3 switch activates SLAAC, allowing connected devices to automatically generate their own IPv6 addresses from router advertisements. This configuration also provides default gateway assignment across all VLANs through the switch's link-local address.
Enabling IPv6 Routing on Switch
To turn SLAAC on, I have chosen to do this on switch one. That's my layer 3 switch that's on my network, and so it is the default gateway for all my VLANs.
I'm on my switch one. I'm going to get into global configuration mode and use the command ipv6 unicast-routing and hit enter. That's it, it's turned on. Now this device is starting to send out router advertisements for the rest of the devices on the network.
Let's take a look at some of the IPv6 addresses that are associated with it now. What I'm going to do is get out of my global configuration mode and take a look at show ipv6 interface, and I want VLAN 10, so that's the one that we'll take a look at.
You can see now that it's got the global unicast address, the GUA. This is the one that we assigned it, so that's not a surprise at all. But it's joined now to the all nodes group — it was joined before, actually, to the all nodes group — and it's joined to this router group now, so it can send out or receive these router solicitations. So it's joined that, and then it's got some other networks that it is joined on as well.
Now let's take a look at the client side. I'm going to open up a command prompt on my demo laptop and type in ipconfig. With ipconfig we can see it has gotten some additional information here. This is the network that we're talking about, and on here we can see that it's got the statically assigned address that was on here, and it also has a new address here.
What's happened is it has taken the router advertisement network that it received and then generated its own host bits on here. So we can see that it's already receiving the information in the RA and generating. Now I have this set up where it's already receiving these router advertisements and then creating its own IPv6 address on this network.
The last thing to note about this is the default gateway here, FE80::219 and the rest of this right here. We can also see that that is one of the addresses here on the switch, so that lines up as well, that it now has the default gateway in here for that device right there, so I can send traffic in that direction. So that exists on here as well.
The last thing we can also check is, I can bring up another command prompt and see if now I can ping one of the pies in another VLAN using IPv6. I'll hit that, and sure enough, I can now ping IPv6 addresses in other networks as well.
So there you have it. We have now set up SLAAC on our networks and it's affecting all of our VLANs at this point in time. They're all getting default gateways.
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 →