microsoft / WSL

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

networkingMode=mirrored doesn't work as expected #11090

Open jfernandz opened 10 months ago

jfernandz commented 10 months ago

Windows Version

Microsoft Windows [Version 10.0.22621.3007]

WSL Version

2.0.14.0

Are you using WSL 1 or WSL 2?

Kernel Version

5.15.133.1-microsoft-standard-WSL2

Distro Version

Arch Linux

Other Software

No response

Repro Steps

I've set this values in .wslconfig file

[wsl2]
memory=4G
[experimental]
autoMemoryReclaim=gradual
sparseVhd=true
networkingMode=mirrored
dnsTunneling=true
firewall=true
autoProxy=true

however, when I do:

> wsl --shutdown
> wsl
$ ip a

I can see just the loopback interface is shown:

$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever

Expected Behavior

I would expect just with networkingMode=mirrored ... the output of ip a shows the very same network interfaces and config than Windows 11.

Actual Behavior

As you can see in my pasted output, ip a just shows loopback interface, so networking is not available inside WSL.

Diagnostic Logs

No response

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

ghost commented 10 months ago

Can you collect logs per these instructions?

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

jfernandz commented 10 months ago

sure @pmartincic, but the whole zip is 88MB large, so ... where should I upload it? Do you want some particular file from inside the zip?

chanpreetdhanjal commented 10 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

ghost commented 10 months ago

@jfernandz, Does it not let you upload here?

jfernandz commented 10 months ago

@jfernandz, Does it not let you upload here?

Max is 25Mb, so I cannot 😞

ghost commented 10 months ago

Sorry, I didn't know we had a limit. Send them to the email listed here: https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#8-collect-wsl-logs-recommended-method

erikspigle-payroc commented 9 months ago

@jfernandz: See if you're in the same boat as me from this post and the information from J0F3.

https://github.com/microsoft/WSL/issues/11002

We had some GPO in our domain that was disabling IPv6 as mentioned by J0F3. When I got rid of the value, networkingMode=mirrored started working and showed the mirrored interfaces for me. We are working internally with the organization to disable this registry GPO that is disabling IPv6 since that's not best practices.

ArslanTu commented 7 months ago

@jfernandz: See if you're in the same boat as me from this post and the information from J0F3.

11002

We had some GPO in our domain that was disabling IPv6 as mentioned by J0F3. When I got rid of the value, networkingMode=mirrored started working and showed the mirrored interfaces for me. We are working internally with the organization to disable this registry GPO that is disabling IPv6 since that's not best practices.

Thank you so much, I have struggle with this for hours.