WSL vEthernet adapter shows up as disconnected after the latest Windows 10 update (10.0.20197.1000)
Environment
Windows build number: 10.0.20197.1000
Your Distribution version: Ubuntu 20.04
The issue is on WSL 2.
Steps to reproduce
- Start using Ubuntu on WSL2: works fine
- After an arbitrary amount of time, no longer able to access the network.
ipconfigon Windows shows
Ethernet adapter vEthernet (WSL):
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Expected behavior
Network access should be available.
Actual behavior
As the adapter is disconnected, cannot access the network from inside WSL.
This issue did not exist prior to installing the latest Windows update from the dev channel.
Requires a Windows restart to restore network access, but the adapter disconnects once again arbitrarily.
Putting the laptop to sleep and waking it up almost always causes the adapter to show up as disconnected immediately.
Does not seem to be related to the use of a VPN although I use one (via the OpenConnect client).
I'm having the same issue on 20197.
This is the output of Powershell ipconfig
I do not use a VPN, just WSL2 and docker desktop.
Trying to change the DNS settings inside WSL to 8.8.8.8 doesn't work either
Does anyone have a workaround ?
Seems like it's the same issue as https://github.com/microsoft/WSL/issues/5805
Having same issue. For me it appear that connectivity is there but once I connect to a wireless connection or plug in the ethernet Media Disconnect happens.
There is a new insider build. Would you like to check?
I currently have it installed and hasn't changed any of the issues.
20201,The same problem, wsl network does not work when the system wakes up from sleep.
20201 has the same problem, the availability of wsl2 is too poor, and it has been rolled back to wsl1.
I'm seeing this issue as well. Build 20197. wsl2 with both Ubuntu 18.04 and 20.04 vm's.
WSL vEethernet adapter appears media disconnected. working fine after reboot. but will be disconnected again within 30 mins.
Hey folks we're looking into resolving this issue! If you're seeing it could you please collect some logs for us and file it in Feedback hub? You can find the instructions to do that here. Please link to your feedback hub item here in this issue to help us find it. Thank you!
heres the feedback hub link - https://aka.ms/AA9g338l
mine as well - https://aka.ms/AA9hjik
If it worth mentioning, after sleeping the same network problem also affects Windows Sandbox
@craigloewen-msft do you have some workaround to force the vEthernet to connect with a command or something ? thx
I reported what appears to be a related issue in:
https://github.com/microsoft/WSL/issues/5805
At least in one occurrence for me the disconnection appears to be related to enabling VPN. Is there a log of when events such as switches being connected/disconnected are logged? I currently have not found a way of re-enabling the switch anyone know of a PowerShell command which will do this?
@craigloewen-msft Hey I'm having the same issue in build 20197 with Ubuntu 18.04 running with WSL2. Feedback hub link: https://aka.ms/AA9hz4q
@mwoodpatrick @craigloewen-msft
I'm having a similar issue. When I connect the host windows machine to an OpenVPN server with the OpenVPN windows client, my Ethernet Adapter vEthernet (WSL) crashes :
Does anyone knows how to restart it from the host, ie with Powershell ?
@craigloewen-msft Have the same problem. Just submitted a ticket throuhg the feedback hub. Wasn't signed in so didn't get a link to it.
Tried to see if the problem was resolved in build 20201 but no dice
Another report if it still need https://aka.ms/AA9hmex
Now, with build 20201, it hasn't been corrected, it's gotten worse!
On a laptop with 1 ethernet adapter, 1 Wireless adapter, WSL 2 with one distro, ipconfig shows 30 entries! (Powershell Get-NetIPConfiguration shows the same). How can I purge this back to reality? Note, I've replaced real IP addresses with x.x.x.x
C:\Toolkit>ipconfig
Windows IP Configuration
Ethernet adapter vEthernet (Default Switch):
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter vEthernet (Default Switch) 2:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter vEthernet (WSL):
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter vEthernet (Default Switch) 3:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter vEthernet (WSL) 2:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter vEthernet (Default Switch) 4:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter vEthernet (WSL) 3:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter vEthernet (Default Switch) 5:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter vEthernet (WSL) 4:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter vEthernet (Default Switch) 6:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter vEthernet (WSL) 5:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter vEthernet (Default Switch) 7:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter vEthernet (WSL) 6:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter vEthernet (Default Switch) 8:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter vEthernet (WSL) 7:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter vEthernet (Default Switch) 9:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter vEthernet (WSL) 8:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter vEthernet (Default Switch) 10:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter vEthernet (WSL) 9:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter vEthernet (Default Switch) 11:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter vEthernet (WSL) 10:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter vEthernet (Default Switch) 12:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter vEthernet (WSL) 11:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter vEthernet (Default Switch) 13:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter vEthernet (WSL) 12:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter vEthernet (WSL) 13:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter Ethernet 2:
Connection-specific DNS Suffix . :
IPv4 Address. . . . . . . . . . . : x.x.x.x
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : x.x.x.x
Unknown adapter Local Area Connection:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Wireless LAN adapter Local Area Connection* 2:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Wireless LAN adapter Wi-Fi:
Connection-specific DNS Suffix . :
IPv4 Address. . . . . . . . . . . : x.x.x.x
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : x.x.x.x
Ethernet adapter vEthernet (Default Switch) 14:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter vEthernet (WSL) 14:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : xxxx::xxxx:xxxx:xxxxxxxx
IPv4 Address. . . . . . . . . . . : x.x.x.x
Subnet Mask . . . . . . . . . . . : 255.255.240.0
Default Gateway . . . . . . . . . :