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

WSL2 can't ping any ip address , and all Network status is DOWN #7356

Closed
1 of 2 tasks
wangyongshuai88 opened this issue Aug 27, 2021 · 9 comments
Closed
1 of 2 tasks

Comments

@wangyongshuai88
Copy link

Windows Build Number

20H2

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

19042.1165

Distro Version

debian Release: 10

Other Software

Docker Desktop 3.6.0
VSCODE WSL remote

Repro Steps

(base) shuidonger@FrozenOcean:~$ ping 127.0.0.1
connect: Network is unreachable

(base) shuidonger@FrozenOcean:~$ ip addr
1: lo: mtu 65536 qdisc noop state DOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: bond0: <BROADCAST,MULTICAST,MASTER> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether a6:83:c7:b2:f1:e8 brd ff:ff:ff:ff:ff:ff
3: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 02:9d:b9:20:c9:da brd ff:ff:ff:ff:ff:ff
4: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 00:15:5d:2b:b4:2d brd ff:ff:ff:ff:ff:ff
5: tunl0@NONE: mtu 1480 qdisc noop state DOWN group default qlen 1000
link/ipip 0.0.0.0 brd 0.0.0.0
6: sit0@NONE: mtu 1480 qdisc noop state DOWN group default qlen 1000
link/sit 0.0.0.0 brd 0.0.0.0

Expected Behavior

please help me to fix this problem

i have read lots of relate problem ,they all can't solve it.

when i use "ip addr "

there all no ip address show in below.

And not only my Debian can't connected to Windows 10 , but also My docker desktop 。

My situation is so similar to:
https://stackoverflow.com/questions/66338549/wsl2-network-unreachable?r=SearchResults#
but i am not as lucky as him。

Actual Behavior

acrodding to this page.
#5286

when i manually configure eth0 and add a default route:

sudo ip address add 172.21.0.10/20 broadcast 172.21.15.255 dev eth0

(base) shuidonger@FrozenOcean:~$ sudo ip route add default via 172.21.0.1
Error: Nexthop has invalid gateway.

Diagnostic Logs

No response

@ikrajshaik
Copy link

for me also same issue

@OneBlue
Copy link
Collaborator

OneBlue commented Sep 7, 2021

Thanks for reporting @wangyongshuai88.

Can you please follow the 'networking issues' and share the output and the log file ?

@wangyongshuai88
Copy link
Author

Thanks for reporting @wangyongshuai88.

Can you please follow the 'networking issues' and share the output and the log file ?

Thank you very much for your attention to this issue.

The attach file is my log file。

I have also upload the log file "WSL.etl" in address https://github.com/wangyongshuai88/wslnetworkissue/blob/main/wsl.etl
wsl.zip

@ghost ghost removed the needs-author-feedback label Sep 11, 2021
@jameslloyd
Copy link

I had this issue managed to solve with :

wsl --shutdown

Then opening the WSL terminal (ubuntu in my case) again

@amouhzi
Copy link

amouhzi commented Sep 21, 2021

Check your antivirus. I had the same problem, I solved it by uninstalling the antivirus. (Note: it is recommended to have an antivirus).

@wangyongshuai88
Copy link
Author

I had this issue managed to solve with :

wsl --shutdown

Then opening the WSL terminal (ubuntu in my case) again

I always do it when i close my wsl . I retry it by now ,and found It don‘t work

@wangyongshuai88
Copy link
Author

Check your antivirus. I had the same problem, I solved it by uninstalling the antivirus. (Note: it is recommended to have an antivirus).

thank you ,when i close my antivirus ,it still the same status.
I have using my wsl for 1 year , but found it broke recently .

@sma11black
Copy link

@wangyongshuai88 This may be caused by the Memory Compression feature in Windows 10. I fix a same problem with disabling swap for wsl. You can check out #5437 (comment) to try it out.

@wangyongshuai88
Copy link
Author

#5437
oh my god!!!!!!!! you are right ! windows compress the “%temp%” .

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

No branches or pull requests

6 participants