-
Notifications
You must be signed in to change notification settings - Fork 826
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No network communication between WSL2 and host / internet #11991
Comments
Logs are required for review from WSL teamIf this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. How to collect WSL logsDownload and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The script will output the path of the log file once done. If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here Once completed please upload the output files to this Github issue. Click here for more info on logging View similar issuesPlease view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it! Open similar issues:
Closed similar issues:
|
/emailed-logs |
Diagnostic information
|
BTW: I forgot to mention that I have tested the mirror modus as well. |
thanks for reporting the issue - can you please collect networking logs using this script? https://github.com/microsoft/WSL/blob/master/diagnostics/collect-networking-logs.ps1 it will create a zip with name starting with "WslNetworkingLogs" please feel free to email those logs as well |
Log sent via email to [email protected] |
Seems like your email servers are rejecting the created log file. |
I also found out that there seems to be Hyper-V networking issues. When I create a new hyper-V network (internal) DHCP seems not to work. I am really frustrated because I have installed Windows 11 only a few weeks ago. |
@adestis-mb there's
Cmdlets from the
|
Had similar issues, after many attempts this has been my solution (Windows 10 host machine, Ubuntu WSL guest): https://stephenreescarter.net/wsl2-network-issues-and-win-10-fast-start-up/ |
Same for me. This started on Sep 6th. I managed to clone some git repos in the WSL without any issue. But minutes later I needed to download something with apt and it showed all kinds of errors, which suggested some IP6 problem. I tried all kinds of fixes, workarounds, related to apt, then IP6, virtual switches, uninstalling WSL, reinstalling, downloading new distros, tweaking the firewall etc. In my case ICMP works, I can ping everything. But nothing TCP based seems to connect. Currently it is in "mirrored" network mode sharing IP with the host apparently. |
I think that MS messed up Hyper-V because I can see similar issues there. |
I'm doing something similar.
|
The restart of the HNS does not change anything for me. |
Hello, wsl --shutdown |
WSL networking stopped working for me after the last update to
@wooksys solution works for me, created a |
The above script works (mostly) for me. When it does work when I then start ubuntu I am greeted with the following WSL warning:
|
Windows Version
Windows 11, Version 23H2, OS Build 22631.4112)
WSL Version
2.2.4.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.153.1-2
Distro Version
any
Other Software
No response
Repro Steps
I freshly installed my System in June or July 2024 including WSL2.
Everything was fine and working.
After some time passed by and I have not used WSL2 and after a bunch of Windows Updates I tried to use WSL2 last week.
From an Ubuntu 22.04 distro I was unable to make any network communication.
So I rebooted my system because I saw s.th. similar on other Windows systems before.
But also after a fresh reboot no network communication BESIDE DNS resolution is possible.
I am also no able to ping the host anymore. This was working when I installed WSL2.
I already also tried the following things without success:
(I was able to see ARP requests but no IP communication like ICMP pings)
Expected Behavior
Network communication (ICMP, TCP, UDP) is possible from WSL2 to the host and to the Internet
Actual Behavior
Only ARP requests are arriving on the interface "vEthernet (WSL (Hyper-V firewall))" of the host.
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: