-
Notifications
You must be signed in to change notification settings - Fork 822
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
WSL 2 networking doesn't work at all for me #5908
Comments
hi, i have the same problem, but on my machine i will access the outside via Wifi and not Ethernet. |
Actually no, that is a DNS thing, and I can't get a single packet out of WSL 2, nevermind DNS. |
@mahdi7839 I switched to Wi-Fi and WSL 2 networking is broken either way. I notice now that I have two virtual Ethernet adapters with the same IP address, and a third with an overlapping subnet. That may or may not be related to this WSL 2 issue, but it probably isn't great in any case.
All of these are of course managed by Windows and I didn't set them up. does this give you any clues as to what's going on? |
https://gist.github.com/danvy/9486bf730371436131cb888ff4c2ceb6 does not fix the issue for me. Disabling the non-WSL ethernet adapters which share IPs or networks does not resolve the issue for me. |
if the cause of this particular issue has been found, can anyone let me know if there is a workaround? anything short of a complete OS reinstall is acceptable to me. I really want to use WSL 2... |
If you modified, moved or compressed the temp folder, look at #5437 for the solution |
Thank you. That isn't the problem, in my case. I tried the fix anyway, and still no network. |
I am no longer convinced that this problem is related to anything I posted in the issue originally. There is a far more pedestrian problem in my cases, that I failed to take into consideration. Company mandated firewall on non-domain networks, and all WSL 2 networks are non-domain networks. Closing. |
Environment
Steps to reproduce
Not sure how to reproduce this, specifically, but it has happened on two of my machines in which I installed Hyper-V before enabling WSL, and I can't reproduce this on a new machine where WSL was enabled first.
When using WSL 2, networking doesn't work in any way. Some of this may be due to my employer's firewall configuration, I don't know. DNS lookups don't work, pinging the host WSL interface doesn't work, nothing. No networking works at all.
Setting the WSL instance to V1, uninstalling Hyper-V, rebooting, then setting the WSL instance to V2 made networking work, but only once, and only until I rebooted next, and I can't reproduce that success, now. I'm not sure what was going on there. I'm back to no network connectivity at all in WSL 2 instances, no matter what I try.
I collected logs per Craig Loewen's instructions on twitter and they're attached below.
WSL logs:
logs.zip
Expected behavior
Networking should work. I should be able to ping stuff and do DNS lookups and
apt
should be able to do its thing.Actual behavior
Networking doesn't seem to be working at all in WSL 2 instances.
If there is further details I can collect, let me know, and I'll collect them. Edit the bug subject/title as desired.
The text was updated successfully, but these errors were encountered: