WSL icon indicating copy to clipboard operation
WSL copied to clipboard

WSL vEthernet adapter shows up as disconnected after the latest Windows 10 update (10.0.20197.1000)

Open peteykun opened this issue 6 years ago • 196 comments

Environment

Windows build number: 10.0.20197.1000
Your Distribution version: Ubuntu 20.04
The issue is on WSL 2.

Steps to reproduce

  1. Start using Ubuntu on WSL2: works fine
  2. After an arbitrary amount of time, no longer able to access the network.
  3. ipconfig on 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).

peteykun avatar Aug 27 '20 06:08 peteykun

I'm having the same issue on 20197.

This is the output of Powershell ipconfig image 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 ?

Hebilicious avatar Aug 27 '20 10:08 Hebilicious

Seems like it's the same issue as https://github.com/microsoft/WSL/issues/5805

Hebilicious avatar Aug 27 '20 10:08 Hebilicious

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.

vcjr avatar Aug 27 '20 14:08 vcjr

There is a new insider build. Would you like to check?

Biswa96 avatar Aug 27 '20 14:08 Biswa96

I currently have it installed and hasn't changed any of the issues.

vcjr avatar Aug 27 '20 14:08 vcjr

20201,The same problem, wsl network does not work when the system wakes up from sleep.

xiaoqidun avatar Aug 27 '20 15:08 xiaoqidun

20201 has the same problem, the availability of wsl2 is too poor, and it has been rolled back to wsl1.

xiaoqidun avatar Aug 27 '20 15:08 xiaoqidun

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.

etfeet avatar Aug 27 '20 20:08 etfeet

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!

craigloewen-msft avatar Aug 27 '20 22:08 craigloewen-msft

heres the feedback hub link - https://aka.ms/AA9g338l

etfeet avatar Aug 27 '20 22:08 etfeet

mine as well - https://aka.ms/AA9hjik

ajdurand avatar Aug 27 '20 23:08 ajdurand

If it worth mentioning, after sleeping the same network problem also affects Windows Sandbox

jaysonsantos avatar Aug 28 '20 08:08 jaysonsantos

@craigloewen-msft do you have some workaround to force the vEthernet to connect with a command or something ? thx

wadjeroudi avatar Aug 28 '20 09:08 wadjeroudi

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?

mwoodpatrick avatar Aug 28 '20 10:08 mwoodpatrick

@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

evantkchong avatar Aug 28 '20 13:08 evantkchong

@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 : image Does anyone knows how to restart it from the host, ie with Powershell ?

Hebilicious avatar Aug 28 '20 14:08 Hebilicious

@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.

riv-rbush avatar Aug 29 '20 13:08 riv-rbush

Tried to see if the problem was resolved in build 20201 but no dice

evantkchong avatar Aug 29 '20 13:08 evantkchong

Another report if it still need https://aka.ms/AA9hmex

jaysonsantos avatar Aug 29 '20 14:08 jaysonsantos

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 . . . . . . . . . :                                                                 
                                                                                                       

sc0ttwad3 avatar Aug 29 '20 14:08 sc0ttwad3