Use this Topic when validating redundant DNS/service endpoints, explaining different clients reaching different instances, or troubleshooting an anycast prefix that remains routed toward an unhealthy node.
Anycast
An IPv6 anycast address looks like unicast and is configured on multiple service instances. Routing, not a special packet flag, steers a client toward one advertised instance.
1. Which instance does this client reach? traceroute ipv6 <addr>.
2. show bgp ipv6 unicast <prefix> — advertised from all instances?
3. A dead service still advertising → withdraw the route on health-check failure.
4. TCP sessions breaking → routing changes moving clients mid-session.
5. Configure with ipv6 address <addr>/<len> anycast so DAD is skipped.
same address on several instances → each advertises the prefix → routing picks the nearest → health check withdraws a failed instance → clients move to the next nearest
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & 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 Operational verification and known-good state Verify boundary
From the affected client location, trace the selected route to the anycast prefix and map it to the serving instance. Confirm that instance actually owns the address and the application listener is healthy. Compare at least one second vantage point because anycast correctness is inherently topology-dependent. During a controlled instance failure, show the associated route withdraws or becomes less preferred quickly enough and that a new connection reaches another healthy instance. For stateful services, test both new-session failover and the expected behavior of existing sessions; they need not have identical guarantees.
Step 2 Verification & troubleshooting Narrow the fault
Step 3 Failure signatures and troubleshooting branches Narrow the fault
Typical failure signatures include a black hole where an unhealthy node keeps advertising the prefix, route-policy asymmetry that attracts traffic to an unintended site, inconsistent DNS/service data across instances, or stateful flows breaking after reconvergence. If different clients reach different servers but both receive correct service, that is expected anycast behavior. If the route changes but the service address is not present on the new node, the failure is node configuration. If route withdrawal is correct yet clients still fail, inspect caching, session state and return-path policy rather than the anycast concept itself.
Step 4 When the problem is really fixed Narrow the fault
Repeat the original client request from the same vantage point and identify which instance serves it. Show that healthy-state routing, controlled failure withdrawal and post-failure new-session service all meet the design. Check another site so policy changes did not over-attract the prefix. Any collected traceroutes, routing outputs or service logs can become Evidence only through the normal evidence workflow; the anycast Topic itself records the expected evidence chain and does not claim an observed failover occurred.
Step 5 Common mistakes Narrow the fault
- Expecting anycast to keep TCP sessions when routing changes the nearest node.
- Advertising the anycast prefix from a site whose service is down (withdraw it on health failure).
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.
Anycast route health and service health are separate. A route can be present while the service behind it is dead, and ECMP or topology changes can move subsequent flows to another instance.
show ipv6 route <anycast-addr>— which instance (next hop) this router prefers.show bgp ipv6 unicast <prefix>— all advertisements of the anycast prefix.traceroute ipv6 <anycast-addr>from several sites — which instance answers.show ipv6 interface <if> | include anycast— anycast address configured on a router.
ReferenceImportant terms & boundaries3 sections · depth on demand
In depth
Anycast: one address on several interfaces, delivered to the nearest
RFC 4291 defines an anycast address as one assigned to several interfaces, with packets delivered to the nearest one according to routing. Anycast addresses come from the unicast space and can't be told apart from unicast addresses by their format.
The subnet-router anycast address (RFC 4291)
Every subnet has a subnet-router anycast address: the subnet prefix with an all-zero interface ID. Routers must support it for each subnet they're attached to. For 2001:db8:20::/64, it's 2001:db8:20::.
R1(config)# interface Vlan20
R1(config-if)# ipv6 address 2001:db8:20::1/64
R1(config)# interface Loopback10
R1(config-if)# ipv6 address 2001:db8:53::53/128 anycast
R1# show ipv6 interface Loopback10 | include ANY
2001:DB8:53::53, subnet is 2001:DB8:53::53/128 [ANY]
R1# show ipv6 interface Vlan20 | section Joined
How anycast works in practice
| Element | Role |
|---|---|
| Same address on several servers or routers | Each advertises it into routing (often a /128 or a /48) |
| Routing picks the closest | Shortest path by IGP metric or BGP |
| Failure | The route disappears and traffic shifts to the next nearest |
Typical uses
| Use | Example |
|---|---|
| DNS | Public and internal resolvers on one address at several sites |
| Subnet-router anycast | Reach any router on a subnet |
| CDN and DDoS absorption | The same service address announced from many locations |
Limitations
| Issue | Reason |
|---|---|
| Stateful protocols | A routing change mid-session can send packets to a different server |
| No duplicate address detection | RFC 4862 excludes anycast addresses from DAD |
| Health | Advertise the anycast route only while the service is healthy |
Short request-response protocols, such as DNS over UDP, are the best fit. Long TCP sessions work when routing is stable.
Documented example, not captured output.
Quick reference
An IPv6 anycast address is a unicast address assigned to several interfaces, usually on different devices; routing delivers packets to the nearest one. It looks like any other unicast address — anycast is a matter of configuration, not a special prefix.
| Use | Example |
|---|---|
| DNS resolvers/root servers | Same address worldwide |
| Subnet-router anycast | Interface ID all zeros reaches a router on the subnet |
| Anycast gateways in fabrics | Same gateway address on every leaf |
Anycast works best for stateless or short request/response services, since a routing change can move a session to another instance.
Mechanics and state ownership
Anycast reuses normal IPv6 unicast semantics: multiple nodes are configured with the same destination address and advertise reachability through the routing system. Each router performs ordinary route selection, so a client reaches whichever instance is preferred by topology, policy, metric and equal-cost behavior. There is no anycast bit in the packet that identifies the service model. This makes route advertisement and application health independent unless the design explicitly couples them. Long-lived stateful sessions can also be sensitive to path changes because a new packet may arrive at a different instance if routing converges or ECMP hashing changes. This section is authored reference guidance for Anycast in the IPv6 Address Types context.
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 IP Fundamentals → IPv6 → Address Types → Anycast. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc8200.html · confidence 94%Quick lookup tables
Anycast operational reference
Topic-specific bounded interpretation: known-good state, suspicious signatures and the next technical proof boundary.
| Check | Known-good | Failure signature | Next boundary |
|---|---|---|---|
| Address | Same service address on intended nodes | Missing/duplicate unintended node | Node config |
| Advertisement | Healthy nodes advertise | Dead node still advertises | Health coupling |
| Route choice | Topology/policy preferred site | Unexpected attraction | Routing policy |
| Service | Selected instance answers | Route works, app fails | Application |
| Failover | New sessions move predictably | Black hole/oscillation | Convergence |