Disclosure up front: I run IPYE, a company that leases IP space. Most of this article is practical how-to; IPYE appears where a free /48, LOA, or ROA helps you try the work, with a short call to action at the end.
When an IPv6 host "has no network", the cause is usually on the local link: no router advertisements, a neighbour that never answers, or an MTU that drops large packets. ping and traceroute are too coarse for this. The ndisc6 package and a few iproute2 commands show you what is happening between a host and its router. This article walks through them for a network numbered from a free IPv6 /48 from IPYE, with a LAN on 2001:db8:100:10::/64 and the router at 2001:db8:100:10::1.
Install
apt install ndisc6 iputils-tracepath ndisc6 provides ndisc6, rdisc6, tcptraceroute6 and rltraceroute6. On some distributions tracepath is in the iputils package.
Is a router advertising?
rdisc6 eth0 rdisc6 sends a router solicitation and prints every advertisement it receives: the router's link-local source, hop limit, router lifetime, the prefixes with their flags and lifetimes, MTU, and RDNSS servers. Things to check:
- Router lifetime of zero. The router is telling hosts not to use it as a default router. That is correct for some VRRP designs and wrong almost everywhere else.
- Autonomous flag off on the prefix. Hosts will not form SLAAC addresses from it.
- Unexpected routers. More than one advertisement source on a LAN that should have one router is a rogue RA. It might be a misconfigured device, or something worse.
- Prefix outside your /48. A stale prefix from an old configuration keeps hosts using addresses that no longer route.
If nothing comes back at all, either the router is not sending RAs on this segment or something between them drops ICMPv6. Run tcpdump -ni eth0 icmp6 on both ends while you repeat the solicitation.
Does the neighbour answer?
ndisc6 2001:db8:100:10::1 eth0 ndisc6 -m 2001:db8:100:10::10 eth0 ndisc6 sends a neighbour solicitation for one address and prints the link-layer address in the reply. -m prints every reply, which reveals duplicate address problems when two machines claim the same IPv6 address.
Compare with the kernel's neighbour cache:
ip -6 neigh show dev eth0 States tell a story: REACHABLE and STALE are normal, FAILED means the kernel tried and got no answer, and INCOMPLETE means it is still trying. A gateway stuck in FAILED explains a lot of "IPv6 is broken" reports.
Which route and source will be used?
ip -6 route get 2001:db8:ffff::1 ip -6 route get 2001:db8:ffff::1 from 2001:db8:100:10::20 ip route get answers the question the kernel asks for every packet: which interface, which next hop, and which source address. When a host has several addresses, the source choice is often the problem, because replies come back to an address the firewall or the remote side does not expect.
Where does the path MTU shrink?
tracepath -6 www.example.net tracepath discovers the path MTU hop by hop and prints pmtu changes as it goes. A drop from 1500 to 1480 or 1420 usually marks a tunnel. If tracepath stops at a hop and later hops never appear, an MTU black hole is a strong suspect.
To test a specific size with fragmentation disabled:
ping -6 -M do -s 1452 2001:db8:ffff::1 1452 bytes of payload plus 8 bytes of ICMPv6 header and 40 bytes of IPv6 header makes a 1500-byte packet. If smaller sizes work and this one silently fails, something on the path drops packet-too-big messages.
TCP traceroute when ICMP is filtered
tcptraceroute6 www.example.net 443 Some networks filter the UDP or ICMP probes that traceroute uses but pass TCP to port 443. tcptraceroute6 sends SYN packets with increasing hop limits, so the trace follows the same path your HTTPS traffic takes.
A quick checklist for "IPv6 is down"
-
ip -6 addr show eth0: is there a global address in the right /64, and is it nottentativeordadfailed? -
rdisc6 eth0: is a router advertising, with a non-zero lifetime? -
ip -6 route show default: is there a default route via the router's link-local address? -
ndisc6 <gateway> eth0: does the gateway answer neighbour solicitations? -
ping -6 <gateway>, then an address outside: where does it stop? -
tracepath -6: is MTU the problem?
Most link problems show up by step 4.
Beyond the link
If every check on the LAN passes and outside addresses still fail, the problem is upstream: the route for the /48, a filter, or the ROA. The LOA your upstream needs is in the IPYE portal, and the ROA needs no manual step, since IPYE's ARIN or APNIC accounts create it.
Do this next
Claim a free /48, install ndisc6 on one host per LAN, and save the six-step checklist where your team will find it. Questions: ipye@turnel.com.
About IPYE
IPYE (https://ipye.com) leases IPv4, IPv6 and ASN space with instant setup. Your first IPv6 /48 is free for the first year, a real allocation you can announce on your own ASN, with a LOA from the portal and the ROA created automatically. ASN and region changes apply automatically. IPv4 /24 to /22 leases include LOA, ROA and per-/24 rDNS; WHOIS is editable on IPv6 /44 and larger. Locations: Los Angeles, New York, Ashburn, Salt Lake City, London, Amsterdam, Frankfurt. Claim your free /48: https://my.ipye.com/products/ipv6-rental. Questions: ipye@turnel.com.
Disclosure: I run IPYE