WSL2 Archlinux Mirrored Network Mode Cannot Access Network
Timeline
2025-10-03
init
On Win11 + WSL2 Archlinux with mirrored network mode, there is a chance after reboot that WSL cannot access the network while Windows can.
WSL configuration:
1 | [wsl2] |
Ping the Gateway
First check whether you can ping the gateway.
- If you can ping IPs but not domain names → DNS issue
- If you can’t even ping IPs → network forwarding / NIC / firewall issue
1 | ping -c 4 8.8.8.8 |
DNS Issues
1 | sudo emacs /etc/resolv.conf |
To prevent it from being overwritten on each reboot, disable auto-generation:
1 | sudo bash -c "echo '[network]' > /etc/wsl.conf" |
Restart WSL:
1 | wsl --shutdown |
Check if networking has recovered.
Firewall Issues
Open Windows Security Center’s Firewall & network protection:
Click “Allow an app through firewall”, and add C:\Windows\System32\wsl.exe.
Check if networking has recovered again.
Other Issues
If you encounter the following error:
1 | wsl: An internal error occurred. |
- Try restarting:
1 | wsl --shutdown |
- Try updating WSL and retry:
1 | wsl --update |
-
Or switch to NAT mode in WSL Settings, then after successfully opening WSL, switch back to Mirror mode.
-
If DNS auto-generation was disabled, try enabling it by setting
generateResolvConf = truein/etc/wsl.conf.

