Pcornel
Networking · IP Fundamentals › IPv6 › Address Types

Anycast

Cheat sheet · https://pcornel.dk/topic.php?topic=943

Back to the Topic

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.

Remember

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.

First 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.

Verify in this order

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

Where it usually breaks

physical/link dependency → local object state → peer/control state → policy → forwarding/adjacency → end-to-end result

Anycast operational reference

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

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=943

Confirmation

Confirm action

Continue?