-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Description
Windows Version
Windows version: 10.0.19045.6332
WSL Version
2.6.1.0
Are you using WSL 1 or WSL 2?
- WSL 2
- WSL 1
Kernel Version
6.6.87.2-1
Distro Version
kali 2025.3
Other Software
No response
Repro Steps
Inside WSL2 (Kali), there is no internet connectivity.
Symptoms:
ip routeshows a default gateway (172.25.112.1).- Cannot ping the gateway from WSL (
ping 172.25.112.1→ 100% packet loss). - Cannot ping external IPs (
ping 8.8.8.8→ 100% packet loss). - Cannot resolve DNS (
ping google.com→ fails). - Host (Windows 10) has internet access normally.
What I tried
wsl --shutdownand restartnetsh winsock reset- Restarted
hns,vmms,LxssManager - Removed & recreated the vEthernet (WSL) adapter
- Full reset of HNS database (
Remove-Item C:\ProgramData\Microsoft\Windows\HNS) - Reinstalled WSL
- Tried
.wslconfigwithnetworkingMode=mirrored, but this is not supported on Windows 10 build 19045.
None of these restored connectivity.
Expected Behavior
WSL2 should have internet access via NAT
Actual Behavior
WSL2 has no connectivity at all. WSL1 does have connectivity, but WSL2 is required for my work.
Diagnostic Logs
┌──(mohammed㉿DESKTOP-UBE0QVD)-[~]
└─$ ping -c 3 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2045ms
Metadata
Metadata
Assignees
Labels
No labels