Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Anycast

Direct answer

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.

When to use this

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.

First 30 seconds

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.

Operational verification

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
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · IOS/IOS XE
Scope / prerequisiteUse this Topic when validating redundant DNS/service endpoints, explaining different clients reaching different instanc…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

5 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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

2. Classify address type and scope.

3. Verify interface address and link-local zone.

4. Verify IPv6 route and next hop.

5. Check ICMPv6, MTU and return path.

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 references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points

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.

Key checks
  • 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

ElementRole
Same address on several servers or routersEach advertises it into routing (often a /128 or a /48)
Routing picks the closestShortest path by IGP metric or BGP
FailureThe route disappears and traffic shifts to the next nearest

Typical uses

UseExample
DNSPublic and internal resolvers on one address at several sites
Subnet-router anycastReach any router on a subnet
CDN and DDoS absorptionThe same service address announced from many locations

Limitations

IssueReason
Stateful protocolsA routing change mid-session can send packets to a different server
No duplicate address detectionRFC 4862 excludes anycast addresses from DAD
HealthAdvertise 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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.

UseExample
DNS resolvers/root serversSame address worldwide
Subnet-router anycastInterface ID all zeros reaches a router on the subnet
Anycast gateways in fabricsSame 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 8200

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%
Embedded reference data

Quick lookup tables

Anycast operational reference

Topic-specific bounded interpretation: known-good state, suspicious signatures and the next technical proof boundary.

CheckKnown-goodFailure signatureNext boundary
AddressSame service address on intended nodesMissing/duplicate unintended nodeNode config
AdvertisementHealthy nodes advertiseDead node still advertisesHealth coupling
Route choiceTopology/policy preferred siteUnexpected attractionRouting policy
ServiceSelected instance answersRoute works, app failsApplication
FailoverNew sessions move predictablyBlack hole/oscillationConvergence
Confirmation

Confirm action

Continue?