Skip to content
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 connection in any distribution under WSL2 #11131

Open
1 of 2 tasks
ilanbe opened this issue Feb 7, 2024 · 3 comments
Open
1 of 2 tasks

No network connection in any distribution under WSL2 #11131

ilanbe opened this issue Feb 7, 2024 · 3 comments
Labels

Comments

@ilanbe
Copy link

ilanbe commented Feb 7, 2024

Windows Version

Microsoft Windows [Version 10.0.19045.3930]

WSL Version

WSL version: 2.0.14.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

Kernel version: 5.15.133.1-1

Distro Version

Ubuntu-20.04, OracleLinux_9_1

Other Software

No response

Repro Steps

PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
^C
--- 8.8.8.8 ping statistics ---
242 packets transmitted, 0 received, 100% packet loss, time 250651ms

same result in both distros

Expected Behavior

Being able to connect to network

Actual Behavior

Not connecting to network

What has been tried :

  1. change host networks (cable <-> WiFi)
  2. disable enable "vEthernet (WSL)" connection on host
  3. modify /etc/resolve.conf on Ubuntu-20.04
    • add
[network]
generateResolvConf = false

  • remove/change dns addresses
  1. Reset windows networks
netsh int ip reset all
netsh winhttp reset proxy
ipconfig /flushdns
netsh winsock reset 

Diagnostic Logs

WslLogs-2024-02-07_12-36-41.zip

Copy link

github-actions bot commented Feb 7, 2024

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please 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. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@OneBlue OneBlue added the network label Feb 7, 2024
@chanpreetdhanjal
Copy link

Hi. Can you please collect networking logs by following the instructions below?
https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#collect-wsl-logs-for-networking-issues

@naorzadok
Copy link

naorzadok commented Oct 30, 2024

in C:\Users<username>.wslconfig
i added

[experimental]
networkingMode=virtioproxy
hostAddressLoopback=true
[wsl2]

and it works!!!!!!!!!!!!!!!!!!!!!!

hope it will help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants