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
Lossing internet connection when some commands are run. #5843
Comments
Please collect WSL logs and post the backlink to the feedback item here. Also list list your third-party networking software installed on Windows, if any. It isn't clear from your post whether you're networking was taken down entirely, or whether names can't be resolved. If you can still ping (say) |
I am also having this issue. Unable to ping anything including the host IP. Ethernet adapter vEthernet (WSL): Media State . . . . . . . . . . . : Media disconnected ~$ ifconfig :~$ route The only thing that has fixed it was resetting my network settings (Windows Settings ->Network & Internet -> Network reset) and reinstalling WSL and Hyper-V. Probably pretty overkill, but it quit working shortly afterwards. I also have Docker Desktop installed and it is not having any issues. |
@therealkenc right now I don't have too much time to collect the WSL logs, but the solution that you gave here #4285 doesn't work. I had already implemented that: @isgallagher try to roll back to WSL 1, that fixed my problems with network. WSL 2 doesn't work. # in your cmd windows shell, run it as admin.
wsl --set-version Ubuntu 1 |
@therealkenc it seems to be a duplicate of this one: #5821 |
Could you please test this https://gist.github.com/danvy/9486bf730371436131cb888ff4c2ceb6 ? |
@danvy that fixed it for me. I've tried restarting hns and lxssmanager before but didn't know about restarting the vEthernet adapter. |
+1 I lose the internet connection when running multiple requests. |
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request. Thank you! |
Environment
Steps to reproduce
So, as usual, I lost internet connection from inside of WSL terminal. I follow this: #3438 (comment)
After reboot, I am able to get access to internet again.
Then, I try to push a new branch to github and I lost internet conneciton again.
WSL logs:
ping: github.com: Temporary failure in name resolution
Expected behavior
Never lost internet connection when I execute some commands.
Actual behavior
I am always losing internet connection when I execute some commands.
The text was updated successfully, but these errors were encountered: