Use it when clients on VLANs without a local DHCPv6 server get no address, or one from the wrong pool.
DHCPv6 Relay Evidence
A DHCPv6 relay — normally the router on the client's link — wraps each client message in a Relay-Forward message and sends it to a server on another network, then unwraps the reply. The wrapper's link-address tells the server which network the client is on.
1. show ipv6 dhcp interface <interface> — is it a relay, to the right server?
2. ping ipv6 <server> source <interface> — reachable both ways?
3. Do clients send a Solicit at all? If not → managed flag in the Router Advertisement.
4. Server answers "no addresses" → no pool for the link-address prefix.
5. Address but no default route → Router Advertisement, not the relay.
Router Advertisement sets the managed flag → client Solicit reaches the relay interface → Relay-Forward with link-address sent to the server → server selects the pool → Relay-Reply returns → relay delivers the reply to the client
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show ipv6 dhcp interface Vlan20Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification workflow Verify boundary
show ipv6 dhcp interface Vlan20
show ipv6 route 2001:db8:ffff::10
ping ipv6 2001:db8:ffff::10 source Vlan20
debug ipv6 dhcp relay
The interface view confirms relay mode and the destination. The route lookup and the sourced ping test the path to the server and back from the address that will appear as link-address. The debug shows each client message being relayed and each reply returned; use it briefly.
In a capture between relay and server, filter on dhcpv6: a Relay-Forward should be followed by a Relay-Reply, and the link-address in both should be the client VLAN's address. On the server, check that a pool exists for that prefix.
Known-good: Relay-Forward and Relay-Reply are seen for each client exchange, and the client receives an address from the pool of its own VLAN.
Step 2 Failure isolation workflow Narrow the fault
- Clients send Solicit; no Relay-Forward leaves the router. The relay command is missing or on the wrong interface.
- Relay-Forward is sent; nothing comes back. The server is unreachable, has no route back, or a firewall blocks UDP 547.
- The server answers that no addresses are available. It has no pool for the prefix in the link-address.
- Clients get an address from the wrong network. The link-address is not the one expected — the interface has several global addresses, or the server's pools are mapped wrongly.
- Clients never send a Solicit. The Router Advertisement on the VLAN does not set the managed flag.
- Clients get an address but no default route. That comes from the Router Advertisement, not through the relay.
- Works for clients on the server's own link only. Nothing relays for the other links.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Configured with ipv6 dhcp relay destination <server> on the client-facing interface. The server picks the pool from the link-address and needs a route back to the relay. The relay does not make clients ask: the Router Advertisement must set the managed flag.
show ipv6 dhcp interface <interface>— relay mode and destination.show ipv6 route <server>— a path to the server.ping ipv6 <server> source <interface>— reachable from the address used as link-address.debug ipv6 dhcp relay— messages relayed and returned; use briefly.
ReferenceWhat it is1 section · depth on demand
Mental model
A DHCPv6 client looks for a server by multicast on its own link. When the server is on another network, a relay agent — normally the router on the client's link — passes the messages on. It wraps each client message in a relay message, sends it to the server, and unwraps the answer for the client.
ReferenceWhy it matters1 section · depth on demand
Why it matters operationally
Most networks have central DHCPv6 servers, so relay is the normal case. The wrapping contains the one piece of information the server uses to pick the right address pool: an address identifying the client's link. When relayed clients get no address, or one from the wrong pool, the cause is nearly always in that field or in the routing between relay and server.
ReferenceHow it works1 section · depth on demand
How it works
On Cisco IOS the relay is configured on the interface facing the clients:
interface Vlan20
ipv6 address 2001:db8:20::1/64
ipv6 nd managed-config-flag
ipv6 dhcp relay destination 2001:db8:ffff::10
Towards the server — Relay-Forward (type 12).
| Field | Content |
|---|---|
| Hop count | Number of relays the message has passed |
| Link-address | A global address of the relay's interface on the client's link — here 2001:db8:20::1 |
| Peer-address | The address the message came from: the client's link-local address |
| Relay Message option | The client's original message, complete and unchanged |
| Interface-ID option | Identifies the interface the client is on |
The server reads the link-address to learn which network the client is on, and chooses the pool whose prefix contains it. It then processes the wrapped client message as if it had received it directly.
Back to the client — Relay-Reply (type 13). The server sends its answer to the relay, wrapped the same way and with the same link-address, peer-address and Interface-ID. The relay takes out the inner message and delivers it to the peer-address on the indicated interface.
Both relay messages are sent to UDP port 547, as ordinary routed unicast.
What must be in place.
- The relay can reach the server, and the server has a route back to the relay.
- The server has a pool for the prefix the link-address belongs to.
- The client-facing interface has a global address — without one there is nothing to put in the link-address.
- The router's Router Advertisements tell clients to use DHCPv6. The relay only carries the messages; it does not make clients send them, and it does not give them a default route.
Several relays in a row wrap the message once each. When prefixes are delegated through a relay, the relay's router also needs a route for each delegated prefix.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
DHCPv6 relay
Clients find DHCPv6 servers by multicasting to ff02::1:2, which never leaves the link. A relay agent is therefore needed whenever the server is elsewhere. RFC 8415 defines how the relay wraps the client's message in a Relay-forward message. It sets hop-count, sets link-address to an address identifying the client's link, sets peer-address to the client's address, and adds the original message as the mandatory Relay Message option. It can also add an Interface-Id option. The server answers with Relay-reply, which the relay unwraps and passes back to the client. Relays can be chained, up to HOP_COUNT_LIMIT (8).
Relay-forward fields (RFC 8415)
| Field | Contents | Used for |
|---|---|---|
| hop-count | Number of relays passed | Loop protection (limit 8) |
| link-address | An address on the client's link, or unspecified | Choosing the server's pool |
| peer-address | The client's link-local address, or the previous relay | Sending the reply back |
| Relay Message option | The client's original message | Required |
| Interface-Id option | The relay's interface identifier | Returning the reply when link-address isn't enough |
Relay transport
| Hop | Destination |
|---|---|
| Client → relay | ff02::1:2, UDP 547 |
| Relay → server | A configured server address (unicast), or ff05::1:3 |
| Server → relay → client | Relay-reply to the relay, then the Reply to the client on UDP 546 |
R1(config)# interface Vlan110
R1(config-if)# ipv6 address 2001:db8:110::1/64
R1(config-if)# ipv6 nd managed-config-flag
R1(config-if)# ipv6 nd other-config-flag
R1(config-if)# ipv6 dhcp relay destination 2001:db8:20::15
R1(config-if)# ipv6 dhcp relay source-interface Loopback0
R1# show ipv6 dhcp relay binding
R1# show ipv6 dhcp interface Vlan110
Vlan110 is in relay mode
Relay destinations:
2001:DB8:20::15
R1# debug ipv6 dhcp relay
srv$ sudo tcpdump -ni eth0 -v 'udp port 547' | grep -E "relay-fwd|relay-reply|linkaddr"
Troubleshooting relays
| Symptom | Check |
|---|---|
| Server never sees requests | The relay destination is configured; the route and ACLs towards the server |
| Server sees requests but answers from the wrong pool | link-address: the relay interface needs a global address in the client prefix |
| Replies don't reach clients | Return route from the server to the relay's source address |
| Clients get an address but no gateway | RAs missing on the client link; DHCPv6 never provides a gateway |
On routers that also delegate prefixes, show ipv6 dhcp relay binding lists the prefixes passed through. That is useful when downstream routers lose their delegated prefixes.
Documented example, not captured output.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Network & Protocols → DHCPv6 Relay Evidence. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc8415.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.