Skip to content

WSL2 Network is unreachable #6480

Closed
Closed

Description

Environment

Windows build number: Microsoft Windows [version 10.0.19042.746]
Your Distribution version: Ubuntu 20.04
Whether the issue is on WSL 2 and/or WSL 1: WSL 2

Steps to reproduce

Run ping command.

samsam@WX-OR6223205:~$ ping 8.8.8.8
ping: connect: Network is unreachable

WSL logs:

Expected behavior

On WSL1, internet connectivy works perfectly fine.
I except ping command to execute and try to send data, and eth0 to have ip for example on WSL1:

sam@WX-OR6223205:/mnt/c/Users/XNWW3722$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
^C
--- 8.8.8.8 ping statistics ---

7: eth0: <> mtu 1500 group default qlen 1
link/ether f8:0d:ac:c9:57:47
inet 169.254.197.80/16 brd 169.254.255.255 scope global dynamic
valid_lft forever preferred_lft forever
inet6 fe80::6d9f:f854:7d27:c550/64 scope link dynamic
valid_lft forever preferred_lft forever

Actual behavior

samsam@WX-OR6223205:~$ ping 8.8.8.8
ping: connect: Network is unreachable

samsam@WX-OR6223205:~$ 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 1a:a6:24:ab:54:9f brd ff:ff:ff:ff:ff:ff
3: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether a2:db:97:fd:f2:42 brd ff:ff:ff:ff:ff:ff
4: sit0@NONE: mtu 1480 qdisc noop state DOWN group default qlen 1000
link/sit 0.0.0.0 brd 0.0.0.0
5: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 00:15:5d:88:79:25 brd ff:ff:ff:ff:ff:ff

Activity

  1. therealkenc commented on Jan 29, 2021

    @therealkenc
    5: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 00:15:5d:88:79:25 brd ff:ff:ff:ff:ff:ff
    

    There is no IP address assigned in your WSL2 instance; this is oftentimes #5437. If turning off swap doesn't help, please collect WSL logs and post the backlink to the feedback item here. Also please identify any third-party networking software that has been installed on Windows.

  2. samuelguesnier commented on Feb 1, 2021

    @samuelguesnier
    Author

    I tried to turn off the swaps but didn't seems to work. I have a proxy on my computer and also a cisco Anyconnect vpn that I must use to connect to my company's network. I tried to turn off proxy + vpn but nothing changes whereas on WSL1 it works.

    I'm gonna try to send you the logs. Thanks for your help

  3. samuelguesnier commented on Feb 1, 2021

    @samuelguesnier
    Author

    My bad, I tried to again to deactivate swap, and now it works. Thanks so much !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions