-
Notifications
You must be signed in to change notification settings - Fork 826
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
Only one lo network card with networkingMode=mirrored #10650
Comments
Having the same issue. I can't connect to my WSL nginx server from Windows and it seems like the wsl instance doesn't even have access to Internet. |
Hi there. I looked at the trace but there isn't much there. Can you stop wsl, start the trace, repro the issue, then stop the trace for us? Thanks! |
Same issue here only when configured with Want to have a trace though unfortunately it is a company laptop... |
The problem still occurs in the 2.0.9 version. |
The problem still occurs in the 2.0.11 version. |
@keith-horton thanks. |
|
@FlowerBirds it seems there was an issue collecting the logs, as I don't see the expected files in the archive you shared. Can you please do the following steps to get new logs?
Thanks |
@FlowerBirds thanks for sharing the traces it appears that WSL was not fully stopped before taking the traces. Also, after traces are stopped, can you please copy the output of the script in a file and attach it to the issue? I see some files were not collected in the zip and I want to check if there was any issue when running the script thanks |
I have solved this with the help of this issue. |
@ArslanTu You are unbelievable! This just solve my long lasting problem!!! Thank you! |
Right. setting this to 0xFF will risk apps and services to not behave correctly - it's an old registry value from before the tcpip stack rewrite in Windows Vista. As in the linked PR, you can directly removing the v6 binding if you want to disable IPv6 - which is supported: Set-NetAdapterBinding -Name Wi-Fi -ComponentID ms_tcpip6 -Enabled $false (replace "Wi-Fi" with the adapter name you have) |
@FlowerBirds , can you see if the Tcpip6\Parameters DisabledComponents registry value is set on your machine? |
@keith-horton Change the default value of DisabledComponents from 255 to 32, after restarting the computer, open WSL, and there will be four additional network card information, from eth0 to eth3.
When I check the default value of DisabledComponents again, it changes back to 255. Finally, I tested the connectivity using localhost and the IP address, and found that localhost is accessible, but using the IP address does not work. .wslconfig
|
@FlowerBirds , thanks. using the local IP address requires setting [experimental] hostAddressLoopback = true We have this false by default to work around other Linux container issues. |
closing since the issue is resolved |
Windows Version
10.0.22635.2486
WSL Version
2.0.4.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.123.1-1
Distro Version
Ubuntu 18.04
Other Software
No response
Repro Steps
use ifconfig command
Expected Behavior
should show eth0 netwrok card indo
Actual Behavior
(base) root@LAPTOP-TC4A0SCV:~# ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 16 bytes 1336 (1.3 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 16 bytes 1336 (1.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
(base) root@LAPTOP-TC4A0SCV:~#
Diagnostic Logs
network not work!
The text was updated successfully, but these errors were encountered: