A router advertisement (RA) is an ICMPv6 message, type 134, that IPv6 routers send to announce their presence, the on-link prefixes, the default gateway and the configuration flags that tell hosts how to obtain addresses. In address configuration, it is the starting point of almost every IPv6 setup: without a router advertisement, a host has only its link-local address and no default route.
Router advertisements are defined by the Neighbor Discovery Protocol in RFC 4861 and drive SLAAC as described in RFC 4862. In networking practice, they play roughly the role that DHCP plays for default gateway discovery in IPv4, but they work without any server keeping state.
How router advertisements are sent and received
Routers send router advertisements in two ways. Unsolicited RAs are multicast periodically to the all-nodes address ff02::1, typically at random intervals between a configured minimum and maximum, such as every 200 to 600 seconds. Solicited RAs answer a router solicitation (ICMPv6 type 133) that a host sends to ff02::2 when its interface comes up, so it does not have to wait for the next periodic message.
Every RA is sent from the router’s link-local source address with a hop limit of 255. Hosts discard any RA that arrives with a lower hop limit, which proves the message was not forwarded from another network. This simple check is the only built-in protection; there is no authentication by default.
The table below summarizes the messages that take part in router discovery.
| Message | ICMPv6 type | Sender | Destination |
|---|---|---|---|
| Router solicitation | 133 | Host | ff02::2, all routers |
| Router advertisement | 134 | Router | ff02::1 or the soliciting host |
| Neighbor solicitation | 135 | Any node | Solicited-node multicast |
| Redirect | 137 | Router | Host using a suboptimal next hop |
Fields and options in a router advertisement
A router advertisement carries a fixed header and a set of options. The header contains the router lifetime, which tells hosts how long, in seconds, to use the sender as a default router; a value of 0 means the router is not a default gateway. It also carries the reachable time, the retransmission timer and the suggested hop limit for outgoing packets.
Two header flags steer address assignment. The M flag (managed) tells hosts to obtain addresses from DHCPv6, and the O flag (other configuration) tells them to fetch other settings such as DNS servers from stateless DHCPv6. The most important option is the Prefix Information Option, which carries a prefix and its own A and L flags.
| Field or option | Purpose | Typical value |
|---|---|---|
| Router lifetime | Validity as default router | 1800 seconds |
| M flag | Use stateful DHCPv6 for addresses | 0 in SLAAC networks |
| O flag | Use DHCPv6 for other settings | 0 or 1 |
| Prefix information | Prefix, A and L flags, lifetimes | A /64 prefix |
| RDNSS option | DNS server addresses | One or two IPv6 addresses |
| MTU option | Link MTU for all hosts | 1500 bytes |
| Route information | More-specific routes | Optional |
Each prefix has a valid lifetime and a preferred lifetime. When the preferred lifetime expires, addresses from that prefix become deprecated and are not used for new connections; when the valid lifetime expires, they are removed. Routers can announce a prefix with lifetime zero to retire a prefix after a renumbering.
Router advertisement flags and address configuration modes
The combination of the A flag in the prefix option and the M and O flags in the header decides how hosts configure themselves. This is why router advertisements are mandatory even in networks that use DHCPv6: DHCPv6 does not provide a default gateway, so hosts always learn their default route from RAs.
| A flag | M flag | O flag | Resulting mode |
|---|---|---|---|
| 1 | 0 | 0 | SLAAC only, DNS through RDNSS |
| 1 | 0 | 1 | SLAAC plus stateless DHCPv6 for DNS and options |
| 0 | 1 | 1 | Stateful DHCPv6 addressing, gateway from RA |
| 1 | 1 | 1 | SLAAC and DHCPv6 addresses together |
Hosts behave differently in practice. Android does not implement stateful DHCPv6, so an RA with A set to 0 and M set to 1 leaves Android devices without a global address. Network designers therefore usually keep SLAAC enabled with RDNSS when the client mix includes phones.
Router advertisement compared with DHCP-based configuration
A router advertisement is stateless: the router does not record which hosts use which addresses. DHCP and DHCPv6 are stateful when they assign addresses, keeping leases and allowing reservations. The two mechanisms complement each other in IPv6 rather than compete.
| Aspect | Router advertisement | DHCPv6 | DHCP for IPv4 |
|---|---|---|---|
| Default gateway | Provided | Not provided | Provided |
| Address tracking | None | Leases per client | Leases per client |
| DNS servers | RDNSS option | Provided | Provided |
| Server needed | No, the router itself | Yes, or relay | Yes, or relay |
Security risks and common mistakes with router advertisements
Because any device on the link can send an RA, rogue router advertisements are a well-known risk. A misconfigured host running connection sharing, or an attacker, can announce a false prefix or itself as the default gateway and redirect or black-hole traffic. The standard countermeasure is RA Guard (RFC 6105) on access switches, which drops RAs arriving on ports facing hosts.
- Forgetting RAs in DHCPv6-only designs leaves hosts with addresses but no default route.
- Announcing a prefix longer than /64 with the A flag set breaks SLAAC on most hosts.
- Using router lifetime 0 by mistake removes the default route from every host on the segment.
- Ignoring RA Guard bypasses: extension header fragmentation can evade simple implementations, so switches should also drop such fragments.
- Long prefix lifetimes after renumbering keep stale addresses on hosts for hours or days.
Stripped to the essentials
A router advertisement is a short announcement a router sends to every device on the local network. It tells them where the exit to the internet is, which address range is used here and how to get set up.
Devices listen for these announcements and use them to build their own IPv6 addresses and to know where to send traffic leaving the network. It is a bit like a notice board at the entrance of a building that lists the street address and the main exit. Without that notice, a device on IPv6 cannot reach the internet, even if everything else works.
Where it is applied
A university campus network introduces IPv6 in its student dormitories, which serve about 3,000 laptops and phones. The routers on each dormitory VLAN send router advertisements every few minutes with a /64 prefix, A flag set, M flag cleared and an RDNSS option pointing to two campus DNS servers.
Within days of launch, some students lose connectivity because a laptop with internet sharing enabled starts sending its own RAs. The network team enables RA Guard on all access switch ports facing students, allowing RAs only from the uplink ports. The rogue announcements stop immediately, every device receives a correct default route, and the IPv6 share of traffic grows to more than half within a month.