Skip to content
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

No Internet in wls2 ubuntu #6060

Closed
pulivenu opened this issue Oct 8, 2020 · 19 comments
Closed

No Internet in wls2 ubuntu #6060

pulivenu opened this issue Oct 8, 2020 · 19 comments
Labels

Comments

@pulivenu
Copy link

pulivenu commented Oct 8, 2020

Upgraded to wsl2, installed Ubuntu 20.04,
No internet in WLS2 linux system.

I've re-installed multiple times, removed wls and redid it. no luck

Appreciate any help
Puli

@licanhua
Copy link
Collaborator

licanhua commented Oct 9, 2020

Can you collect-wsl-logs? I can take a look at the logs to see if there is any error reported.

@jbc22
Copy link

jbc22 commented Oct 10, 2020

@licanhua I followed the steps and submitted. I'm experiencing the same issue.

@licanhua
Copy link
Collaborator

Please share the link for the log

@matjawor
Copy link

matjawor commented Oct 16, 2020

I confirm the same issue after upgrade to WSL2 from WSL1. Additional network pieces of information.

Windows WSL vEthernet:

Ethernet adapter vEthernet (WSL):

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Hyper-V Virtual Ethernet Adapter
Physical Address. . . . . . . . . : 00-15-5D-7E-02-04
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::4c15:3b73:ba02:efe5%51(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.192.1(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.240.0
Default Gateway . . . . . . . . . :
DHCPv6 IAID . . . . . . . . . . . : 855643485
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-26-FC-B4-C9-F8-CA-B8-26-49-8F
DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
NetBIOS over Tcpip. . . . . . . . : Enabled

Ubuntu 20.04 ip address and ip route

ip address
5: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:15:5d:16:c5:73 brd ff:ff:ff:ff:ff:ff
inet 192.168.206.156/20 brd 192.168.207.255 scope global eth0

ip route
default via 192.168.192.1 dev eth0
192.168.192.0/20 dev eth0 proto kernel scope link src 192.168.206.156

cat /etc/resolve.conf
nameserver 192.168.192.1

Effect, no internet access in Ubuntu, the host is not accessible, a firewall (ESET) is disable while testing. Docker desktop installed and running on the Windows host (if it could be the issue).

@licanhua
Copy link
Collaborator

licanhua commented Oct 16, 2020

@matjawor, From network aspect, the ip config looks good.
Because your netmask is a.b.c.d/20, so 192.168.192.1 and 192.168.206.156 are in the same subnet.
image

There are lot of possibilities which may cause issue, For example, there is another network on Windows(you can check it via ipconfig) which ip is assigned any ip among 192.168.192.1 - 192.168.207.254.

You can start with traceroute www.microsoft.com from Ubuntu. I expect you see the first hop like
1 192.168.192.1 0.205ms 0.172ms 0.196ms

If you can saw more than 2 hops, then you can compare with the output of tracert www.microsoft.com on Windows. Since you have problem to access internet, most of time, the 2nd hop is not reachable.

@jbc22
Copy link

jbc22 commented Oct 20, 2020

I had to recreate the submission since I wasn't logged in the first time. Here is the link: https://aka.ms/AAa0oze

@licanhua
Copy link
Collaborator

@jbc22 Thanks for your link, but unfortunately the logs your submitted is empty. Most of time, empty logs is because user doesn't start/stop recording when submitting the logs via Feedback Hub.

I don't know if reset the network will help

@jbc22
Copy link

jbc22 commented Oct 21, 2020

The reset network steps did not resolve. I'd also reset the app, uninstalled and reinstalled.

The interface isn't pulling an IP address from DHCP.

Here is another attempt to provide logs via Feedback Hub. https://aka.ms/AAa2a1q

@licanhua
Copy link
Collaborator

Thanks. You submitted the log, but there is no log associated with it.
Can you confirm if you are hitting Mysterious "correction" of IP address from 192.168.x.x to 172.x

I don't know if any workaround of #5061 applies to you.

@vineettalwar
Copy link

vineettalwar commented Oct 24, 2020

I can confirm this issue in freshly installed windows 10 pro 2004 .
After next system restart, there is no interent, no updates.
Tried all work arounds available in these tickets, even stopped windows defender or add exclusion rules for wsl.
Stil there is no internet in wsl2.

Update: A workaround from #5061 (comment) is getting the job done

@jbc22
Copy link

jbc22 commented Oct 26, 2020

@licanhua what logs can I submit with this issue?

Neither of those two apply.

@jbc22
Copy link

jbc22 commented Oct 27, 2020

@licanhua I downgraded to WSLv1 for that image and it's working 100% now.

@lukee1234
Copy link

If you modified, moved or compressed the temp folder, look at #5437 for the solution

@hsmyers
Copy link

hsmyers commented Jan 25, 2021

I have the same problem. That said, I don't think it is a WSL problem—I was working just fine less than two weeks ago. The problem in-between? Windows fast-trac updates. Hardly the first time I've been crippled by a new version…

@pulivenu
Copy link
Author

@licanhua
Issue has been open for a while,
Any updates on when the issue will be addressed by microsoft ?

@hsmyers
Copy link

hsmyers commented Jan 25, 2021 via email

@licanhua
Copy link
Collaborator

I don't have update on this.
yes. Networking is a complex problem. It's even hard to guess if there is no log

@thiagaoplusplus
Copy link

I just migrated from WSL1 to 2 and the Ubuntu lost the internet conectivity. In my case, I'm using the PC from work, and the problem was solved by disabling the McAfee Endpoint Security Firewall.

Copy link
Contributor

This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants