-
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
no network/internet access #11675
Comments
probably similar to #11061 |
also tried disabling all network interface as the issue linked about said, and that did not work also. networking used to work for a while and then it stopped working a couple weeks ago. |
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:
Diagnostic information
|
WSL 2.2.4 has an issue, at least with an existing .wslconfig like the following:
Downgrade to WSL 2.1.5 (https://github.com/microsoft/WSL/releases/download/2.1.5/wsl.2.1.5.0.x64.msi) resolves the issue. Unfortunately I couldn't take the time to find out how to make run WSL 2.2.4 with the configuration mentioned. |
@keith-horton: This user is using mirrored networking:
|
yep, downgrading also did not work. |
also, i do not use any vpn on this particular box. |
Hi. I am facing the same network issue and couldn't resolve it for a while now. Could you share how we can downgrade WSL from 2.2.4.0 to 2.1.5? Do we just run the executable you link? |
Hi,
|
Hi @dcasota . Thank you for your prompt response. I ran the For context, I do not have an existing https://learn.microsoft.com/en-us/windows/wsl/networking
Do you have some ideas of what other issues this network connectivity problem might be caused by? Thanks so much. |
I tried to populate a curated answer. Hope this helps. Constellations1a) enterprise workstation/laptop: Data Loss prevention policy'Device control in Microsoft Defender for Endpoint' with an activated policy for W11 devices might detect WSL instances and prevent access to storage and networks. 1b) Support good standing of IT security. Backup your system.
2) WSL ReinstallationTypically, a WSL reinstallation fixes misconfiguration issues quite well. However, create first a backup of your WSL distribution as mentioned in Step 1. A reinstallation deletes any registered WSL distribution. Here a sample of a reinstallation recipe.
3) Network ConnectivityNetwork connectivity results as a sort of pipeline e.g. If a vnic inside a WSL distribution does not get a network link, the pipeline is broken. Investigate if network connectivity works in another WSL distribution. If it works, it's rather not a WSL issue. There are different types of network adapters e.g. built-in wired or wi-fi, usb(-c)-to-ethernet, etc. Not all vendor types are enabled by default in the Distros' Linux Kernel. In case of a Windows 11 network configuration issue, check your configuration. |
@fawaf thanks for reporting the issue can you please collect a new set of networking logs using instructions below? - we need to the capture the process of WSL startup in the logs run .\collect-networking-logs.ps1 |
oddly, i ran it, but it doesn't continue to collect logs. it just runs to completion and exits. |
a reinstall of wsl seems to have fixed this issue as mentioned above. i'll report back if it occurs again. |
Hey @fawaf - did you follow @dcasota's instruction above for reinstallation? After reinstallation, how did you reimport your project files etc. back to your newly installed WSL2? (I presume his Step 2 instructions above will delete your original WSL's Ubuntu content?) |
yep, that is correct. step 1 will back up the distro into a tar file. i used the import command provided by wsl
|
@fawaf Thank you for the swift replies! Could I clarify that everything works well for you after re-importing? i.e. your personal bash commands, project files, VSCode configuration, etc. etc. are all working ok? ^ just needed some re-assurance before I run the commands, lol! |
yep, everything works from what i can tell. |
@fawaf @cyberjj999 a question: can you check with There seems to be a build-in wsl update in KB5039212, because even after having uninstalled wsl + dism packages, KB5039212 contains newer wsl bits:
Those wsl files are in c:\windows\system32. I uninstalled the KB with in addition wsl show the well-known Error code On this install base, a reinstallation succeeds. KB5039212 seems to update the installbase to 2.2.4 despite issue(s) 'no network issue/internet access'. |
i do not have KB5039212 installed. |
Yes. I do have is the fix to remove this update then? |
I can confirm that uninstalling |
@cyberjj999 In my x86_64 lab, removing kb5039212 helped to afterwards reinstall wsl to 2.1.5 successfully and not have issues with networkingMode. Also, in Start > Settings > Windows Updates > choose pause updates e.g. for 7 days. |
Windows Version
Microsoft Windows [Version 10.0.22635.3720]
WSL Version
WSL version: 2.2.4.0
Kernel version: 5.15.153.1-2
WSLg version: 1.0.61
MSRDC version: 1.2.5326
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26091.1-240325-1447.ge-release
Windows version: 10.0.22635.3720
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.153.1-microsoft-standard-WSL2
Distro Version
Fedora
Other Software
No response
Repro Steps
try to use any networking/internet command
Expected Behavior
internet to be connected
Actual Behavior
no internet/networking access
Diagnostic Logs
WslNetworkingLogs-2024-06-09_19-29-43.zip
The text was updated successfully, but these errors were encountered: