microsoft / WSL

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

No network access with networkingMode=mirrored #10791

Open diehard2 opened 8 months ago

diehard2 commented 8 months ago

Windows Version

10.0.22635.2771

WSL Version

2.0.9

Are you using WSL 1 or WSL 2?

Kernel Version

5.15.133.1-microsoft-standard-WSL2

Distro Version

Ubuntu 20.04

Other Software

No response

Repro Steps

ping google.com

Expected Behavior

I am expecting to see a successful ping

Actual Behavior

ping: google.com: Temporary failure in name resolution

If I am in NAT mode everything works, but the VPN is super broken and my previous workarounds no longer work with 2.0.9. I do not have HyperV installed

Diagnostic Logs

WslLogs-2023-11-18_11-23-14.zip

github-actions[bot] commented 8 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.

FlowerBirds commented 7 months ago

+1

aentwist commented 7 months ago

I don't see network anywhere. Maybe you wanted networkingMode?

diehard2 commented 7 months ago

@aentwist sorry, it was a typo in my issue title.

I updated to 2.0.14 and I am seeing the same issue

ping: google.com: Temporary failure in name resolution

just nothing at all in mirrored

chanpreetdhanjal commented 7 months ago

Could you please follow the steps below and attach the diagnostic logs? https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#collect-wsl-logs-for-networking-issues

diehard2 commented 7 months ago

WslLogs-2023-12-07_11-53-14.zip

@chanpreetdhanjal here they are.

ThaDaVos commented 7 months ago

I am having the same issue - if I enable networkingMode=mirrored I can do DNS (probably because I turned on the dnsTunneling) but cannot connect/ping any IP except my PC's own IP

chanpreetdhanjal commented 7 months ago

Please follow the networking diagnostic script. https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#collect-wsl-logs-for-networking-issues

It should create a folder like [WslNetworkingLogs-date_ver.zip]

aentwist commented 7 months ago

Are you a bot

chanpreetdhanjal commented 7 months ago

I am WSL networking product manager from Microsoft. Please follow the instructions from the link above and share WSL networking logs so we can help you.

conan commented 4 months ago

Same problem, mirrored networking fine at first but drops after only a few minutes

C:\Users\conan>wsl --version
WSL version: 2.0.0.0
Kernel version: 5.15.123.1-1
WSLg version: 1.0.57
MSRDC version: 1.2.4485
Direct3D version: 1.608.2-61064218
DXCore version: 10.0.25880.1000-230602-1350.main
Windows version: 10.0.22631.3235

.wslconfig

[experimental]
networkingMode = mirrored 

wsl.conf

[boot]
systemd=true

WslLogs-2024-03-07_10-14-51.zip

lyubchev commented 3 months ago

same here

lyubchev commented 3 months ago

I just enabled dnsTunneling and it now works:

[wsl2]
dnsTunneling=true
gitagogaming commented 1 week ago

I am WSL networking product manager from Microsoft. Please follow the instructions from the link above and share WSL networking logs so we can help you.

when does the help come?😭