microsoft / WSL

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

Randomly loses IPv4 connectivity #11529

Open ofoacimr opened 7 months ago

ofoacimr commented 7 months ago

Windows Version

Microsoft Windows [Version 10.0.26100.268]

WSL Version

2.2.4.0

Are you using WSL 1 or WSL 2?

Kernel Version

5.15.153.1-2

Distro Version

Ubuntu 20.04

Other Software

WSLg: 1.0.61 MSRDC: 1.2.5326 Direct3D: 1.611.1-81528511 DXCore: 10.0.26091.1-240325-1447.ge-release

Repro Steps

  1. Launch WSL
  2. Check it has IPv4 connection and can surf the Internet
  3. Run anything for some time, or just wait
  4. Check it has lose IPv4 connection by ip a

Expected Behavior

Always have IPv4 connection

Actual Behavior

Lose IPv4 connection

$ 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
    inet 10.255.255.254/32 brd 10.255.255.254 scope global lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 00:15:5d:8f:d1:4b brd ff:ff:ff:ff:ff:ff
    inet6 fe80::215:5dff:fe8f:d14b/64 scope link
       valid_lft forever preferred_lft forever
github-actions[bot] commented 7 months ago

Failed to parse logs. Unexpected file: HKLM.txt The log file doesn't contain any WSL traces. Please make sure that you reproduced the issue while the log collection was running.

View similar issues

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!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Diagnostic information
Found no WSL traces in the logs

github-actions[bot] commented 7 months ago
Diagnostic information ``` Detected appx version: 2.2.4.0 ```
YiHui-Liu commented 6 months ago

WslLogs-2024-05-31_12-07-19.zip

CatalinFetoiu commented 3 months ago

thanks for reporting the issue

can you please collecting networking logs using instructions at https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#collect-wsl-logs-for-networking-issues?

It will create a zip with name starting with "WslNetworkingLogs"

please make sure you have IPv4 connectivity before starting the logs and IPv4 connectivity is lost before stopping the logs

thanks