microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.54k stars 823 forks source link

No network connection in any distribution under WSL2 #11131

Open ilanbe opened 9 months ago

ilanbe commented 9 months ago

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?

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 

4. 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](https://github.com/microsoft/WSL/files/14192550/WslLogs-2024-02-07_12-36-41.zip)
github-actions[bot] commented 9 months ago

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.

chanpreetdhanjal commented 9 months ago

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 commented 4 weeks ago

in C:\Users\.wslconfig i added

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

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

hope it will help