Networking

OpenWrt DHCPv6-only LAN: intermittent inability to reach IPv4-only sites after enabling PD-only mode

Environment

Environment

OpenWrt 21.02 router (home-edge), LAN with mixed clients: Windows 10/11 laptops, Android phones, and Linux servers. Router configured to request delegated prefixes (PD-only) from upstream ISP and advertise RA while disabling IA for IPv4 DHCP on LAN.

Symptoms

Symptoms

Some clients intermittently time out or receive browser errors when accessing IPv4-only websites (example.com). Other sites (IPv6-enabled) work. Issue occurs across different clients and browsers, mostly during heavy LAN activity or after a DHCPv6 prefix refresh.

Observations

Observations

Router logs show successful PD renewals. On affected clients: ip -6 route shows default via LAN router; resolv.conf points to router DNS. DNS64 sometimes returns synthesized AAAA for IPv4-only domains; at failure times, DNS queries either timeout or return no AAAA. tcpdump on router shows DNS queries from clients forwarded, but occasional ICMPv6 'Destination unreachable, communication with destination administratively prohibited' for synthesized flows.

Already attempted

Already attempted

Rebooted router and several clients, toggled RA/DHCPv6 settings, rebooted upstream modem, increased firewall logging, temporarily enabled IPv4 DHCP alongside PD (restored IPv4 connectivity), updated OpenWrt to latest available stable package feed.

Question

Question

What targeted diagnostics and reversible configuration changes can confirm whether the break is DNS64/NAT64 synthesis, RA/default-route timing, firewall RA filtering, or MTU/ICMPv6 filtering? How to restore stable IPv4 reachability without reverting to IPv4 DHCP permanently?

COMMUNITY RESPONSES

Verified community troubleshooting

1 reply
0
nathalie_net Answer
user
Posted 4w ago • 0 confirmations

First check whether DNS64 is reliably returning synthesized AAAA records. From an affected client run: dig +short A example.com and dig +short AAAA example.com @<router-ip>. If AAAA is missing or inconsistent, tail the router's DNS (dnsmasq/unbound) while retrying the lookup. If DNS is fine, capture tcpdump on the router while reproducing: watch for translated SYN packets and any ICMPv6 Packet Too Big responses. As a quick reversible fix, enable IPv4 DHCP on the LAN (or pin one test client to IPv4) to confirm the problem is the synthesis/translation path; if that restores connectivity, focus on NAT64/DNS64 service on the router or upstream. When changing firewall rules, only open ICMPv6 PTB temporarily and restore after tests. Roll back by re-enabling previous firewall or disabling IPv4 DHCP when done.

Showing 1 of 1 community responses
AI DIAGNOSTICS

Incident analysis

Updated 4w ago• Trouble ID

Most likely causes

Intermittent DNS64 failure or DNS proxy cache serving stale/failing replies on the router 80%
NAT64 / stateful translator on router or upstream intermittently failing to translate or dropping sessions during PD prefix changes 70%
Router firewall (RA filtering/IPv6 firewall) blocking essential ICMPv6 types (Packet Too Big / PTB) causing PMTU blackhole for synthesized IPv4-over-IPv6 flows 60%

Summary

Intermittent reachability to IPv4-only sites on a DHCPv6-only LAN with PD points toward failures in the IPv6-to-IPv4 synthesis chain or client routing during PD changes. Primary suspects: DNS64 intermittently failing to synthesize AAAA or being blocked; NAT64 translator (if present upstream/on-router) dropping translated flows; RA/firewall rules that block ICMPv6 Path MTU or necessary ICMP types causing PMTU blackholes; and client default-route lapses during PD renewals. The fact IPv4 DHCP re-enable immediately restores connectivity implicates the translation or DNS synthesis layer rather than upstream IPv4 path.

Suggested Fixes

Diagnostic step 1
From a failing client, run: dig A example.com and dig AAAA example.com @<router-IP> and compare results to a working client; capture responses and timestamps.
Diagnostic step 2
On router, enable verbose DNS and NAT64 logging (or capture dnsmasq/unbound logs) around a failure window to see whether AAAA synthesis occurs and if NAT64 creates sessions.
Diagnostic step 3
Temporarily enable IPv4 DHCP on LAN as a rolling mitigation; verify connectivity persists — this isolates translation/DNS as root cause.

Continue troubleshooting

Matched from the title, description and tags