-
Notifications
You must be signed in to change notification settings - Fork 823
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
wsl2 Network is unreachable #12310
Comments
Logs are required for review from WSL teamIf this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. How to collect WSL logsDownload and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The script will output the path of the log file once done. If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here Once completed please upload the output files to this Github issue. Click here for more info on logging View similar issuesPlease 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! Open similar issues:
Closed similar issues:
|
Diagnostic information
|
Diagnostic information
|
View similar issuesPlease 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! Open similar issues:
Closed similar issues:
Diagnostic information
|
Diagnostic information
|
dmesg show: [ 92.107340] hv_vmbus: probe failed for device 02c52ad9-d069-4f46-873b-f449dca960ec (-19) |
i changed the |
it's workin' okay now. Maybe Windows 11's update has changed the mirrored network. I don't wanna spend much more time on it. So, it's done! |
The LAN cannot access the network of WSL. |
I may have found the problem,but i can't take it over. My computer has two network cards. One is built into the motherboard, and the other is a USB Wi-Fi network card. After a certain system update, the mirrored mode broke down and my motherboard's built-in network card could not be loaded. After I disabled it, WSL could start normally and the network was also normal. If only the motherboard network card is retained and my Wi-Fi network card is disabled, there will still be an error when starting up and there is no network. My motherboard network card is 我也许找到了问题,我的电脑有两张网卡,一张是主板自带的,一个是usb wifi 网卡,某次系统以后,mirrored模式就坏了,无法加载我的主板自带的网卡,我把他停用以后,wsl就可以正常启动,网络也是正常的。如果只保留主板网卡,停用我的wifi网卡,启动还是报错,没有网络。 |
The logs show that mirrored networking is in use:
@CatalinFetoiu can you take a look? |
@lifetraveler thanks for reporting the issue can you please try setting setting generateResolvConf to true, then run "wsl --shutdown" and restart WSL? let us know if you still encounter DNS issues after doing this |
WslLogs-2024-11-27_14-38-14.zip my wsl.conf root@debian-wsl:/mnt/c/Users/randomtree# cat /etc/wsl.conf
[boot]
systemd=true
[network]
hostname = debian-wsl
generateHosts = false
generateResolvConf = true
|
Diagnostic information
|
Windows Version
Microsoft Windows [Version 10.0.22621.3527]
WSL Version
2.2.4.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.153.1
Distro Version
Debian 12
Other Software
No response
Repro Steps
root@debian-wsl:/mnt/c/Users/randomtree#ping 172.16.100.254 # my gateway ip
root@debian-wsl:/mnt/c/Users/randomtree#ping: connect: Network is unreachable
root@debian-wsl:/mnt/c/Users/randomtree#ping www.google.com
root@debian-wsl:/mnt/c/Users/randomtree#ping: www.google.com: Name or service not known
root@debian-wsl:/mnt/c/Users/randomtree# wget -x www.baidu.com
--2024-11-22 19:57:32-- http://www.baidu.com/
Resolving www.baidu.com (www.baidu.com)... failed: Name or service not known.
wget: unable to resolve host address ‘www.baidu.com’
Expected Behavior
can touch the lan and internet
Actual Behavior
no network
Diagnostic Logs
WslNetworkingLogs-2024-11-22_20-16-32.zip
The text was updated successfully, but these errors were encountered: