Router Advertisement (RA) flags control how IPv6 clients obtain addressing information, directing them to use SLAAC, DHCPv6 for additional options, or DHCPv6 for full address assignment. This content covers how to configure the O flag and M flag on a Cisco switch virtual interface to define client behavior on a VLAN.
IPv6 Router Advertisement Flags
When a router sends out a router advertisement, it will send out information about the default gateway, about itself, to the client. But it also will send out information on what that client should do next: should it reach out to a DHCP version 6 server for additional options, or should it reach out for an IP address, or should it create its own IP address?
We are going to make these configuration changes on switch one. Switch one is the default gateway for all of our different VLANs, so it is the appropriate spot to be setting this up on, at least for this demo.
What we are going to be doing is setting it up so that the router advertisements that are sent out are going to tell the client what it is going to do next. If we configure SLAAC, it would set the auto configure flag to one, letting that client know that it is going to auto configure an IP address for itself - it is stateless. Or what we could do is set it to SLAAC plus DHCP version 6. So we are going to turn on the other flag on here, so that way it will reach out to a DHCP version 6 to get some additional information.
I will also show you how to turn on the manage flag, so that way we turn DHCP version 6 on, so then it would actually reach out to a DHCP version 6 to get its IP address as well.
One thing to note is that I am not actually going to turn on SLAAC at this point in time. We are just going to take a look at how to adjust these flags, so in essence, at the end of this demo we will not have this all up and running and working. I am just going to be showing you how to turn it on - and in fact, this one right here just gets turned on when you turn SLAAC on. So we are going to take a look at these two configurations right here, of how to set up these flags on the network, and then you can take this and apply it as we talk further about turning on these different options.
Here I am on my switch, and I need to make these changes on the individual interfaces. So I am going to get onto the interface, and in this case it is going to be our switch virtual interface. I am going to jump onto our switch virtual interfaces, our SVIs, and for this particular one let us take a look at VLAN 10 and do this for VLAN 10.
I am going to get into global configuration mode first, and look at interface VLAN 10, so we get into that switch virtual interface. Then I am going to type in ipv6 nd other-config-flag.
If I had turned SLAAC on, the flag for the auto configuration would already be turned on. This would then turn the O flag on, and I would hit that and the O flag would then be turned on. To remove it, it is as simple as the same command with the no at the front, and then we just go back to straight SLAAC. So this is how to turn on SLAAC plus DHCP version 6, and then turn the second part off, so now it is just SLAAC at this point.
Then I can also do the same thing if I want to just point it and say, hey, go find your IP address from a DHCP version 6. I am - dash flag - hit enter, and now the clients on this network will just go reach out to a DHCP version 6 for their IP address.
This would also turn the auto config flag off and also turn off the other flag, but I want those flags to be on, so I am going to type in no ipv6 nd manage-config-flag.
There you have it. That is how to turn on the different flags in the router advertisement. If the router advertisement was going out, then those flags would be turned on.
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 →