-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
Description
Environment
Windows build number: 10.0.19041.0
Your Distribution version: Ubuntu-18.04
Whether the issue is on WSL 2 and/or WSL 1: WSL 2 only (Linux version 4.19.104-microsoft-standard (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP Wed Feb 19 06:37:35 UTC 2020)
Steps to reproduce
I have installed WSL 2 on a new Windows 10 Education machine managed by my employer (university) following the online instructions. Whenever I create a new distribution using WSL version 2 I have no network connection.
duncan@Macleod-XPS:/mnt/c/Users/spxdmm$ ping google.com
ping: google.com: Temporary failure in name resolution
duncan@Macleod-XPS:/mnt/c/Users/spxdmm$ ping 127.0.0.1
connect: Network is unreachable
duncan@Macleod-XPS:/mnt/c/Users/spxdmm$ ifconfig eth0
eth0: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether 00:15:5d:a5:38:8b txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
duncan@Macleod-XPS:/mnt/c/Users/spxdmm$ cat /etc/resolv.conf
# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:
# [network]
# generateResolvConf = false
nameserver 192.168.176.1
Gist of strace here: https://gist.github.com/duncanmmacleod/4a69a363bf990c3a0dead811b22ce6d5
If I use wsl --set-version
to roll back the distribution to WSL 1 I get a network connection just fine.
Expected behavior
New distributions on WSL 2 have a working network connection out-of-the-box.
Actual behavior
See above
Thanks, sorry if this is a duplicate of an existing issue (I surely can't be the only one...)
habamax, archonic, qiansen1386, kumarvaradarajulu, martysai and 210 moretrallnag and andresmonctrallnag and andresmonctrallnag and andresmonctrallnag, andresmonc, fabiosouzadev and harshitpant1trallnag, joeizang, andresmonc, keniti213, harshitpant1 and 1 moretrallnag and andresmonchabamax, Form1ca, HiteshDhola, afspear, a4h8 and 10 more