Wsl network is unreachable. 2364, WSL version: 1. 04 Whether the issue is on WSL 2 and/or By default, WSL uses a NAT (Network Address Translation) based architecture for networking. 11. conf file and etc. conf to point to a functioning nameserver for the duration of the session. Network Configuration: Run ip a to check the I have a Ubuntu 20. 1165 Distro Version debian Release: 10 Other Software Docker Desktop Have done that on 2 systems. com from Bash. 90. The vEthernet in Windows has the default config, and surprisingly does not fall within In this guide, we’ll explore the root causes of WSL internet issues and walk through step-by-step solutions to restore connectivity. 22621. 1. 24. 123 icmp_seq=2 Destination Host Unreachable From 192. There are more threads with "Network is unreachable" where people tries to solving it in different ways like in #4275 (comment) It depends of your Windows Version Microsoft Windows [Version 10. Just by upgrading to wsl2, I can't ping google. 1000] WSL Version 2. --> Editing resolv. 168. 226 icmp_seq=3 Destination Host Unreachable [] Current Situation Host Windows networking works perfectly WSL instances can resolve DNS names but cannot transmit/receive packets All WSL distributions If you're a developer using WSL2 on Windows 11, you've likely encountered the frustrating scenario where your Windows system has perfect internet Open similar issues: No network access with networkingMode=mirrored (#10791), similarity score: 0. By The routes from WSL2 did not have a default route. Till recently, I was able to reach/connect to applications installed on Host from WSL2. 3. 746] Your Distribution version: Ubuntu 20. 0 Are you using WSL 1 or WSL 2? WSL 2 WSL 1 Kernel Version No response Distro Version No response Other Software Windows Build Number 10. >lsb_release -a Distributor ID: Ubuntu Description: I then followed this official guide for setting up WSL 2, and installed the latest Ubuntu (20. 226 icmp_seq=2 Destination Host Unreachable From 192. conf [network] generateResolvConf = false $ ip addr show 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 When trying to ping an IP from remote or local network, or even the IP of the Windows host, it fails with "Destination Host Unreachable". 8. 4112) WSL Version 2. 19042. 8 shows From <a ip> icmp_seq=1 Destination Host Unreachable networkctl shows WARNING: systemd- No network connectivity WSL 2 (not DNS/firewall related?) (#10572), similarity score: 0. And then open the Ubuntu-24. 04 Follow this toe install ubuntu on windows. 167. With this launching correctly, the first thing I tried was a sudo apt update so that I WSL is great, but when it comes to networking, things can get a bit confusing, especially because WSL has changed its behavior a bit since it first made its debut. but it was not Windows Version Windows 11, Version 23H2, OS Build 22631. 04 Other Software No response Repro Steps Try to Hi everyone , i have installed ubuntu 20 on my windows, but i do not have any network connection to upgrade my packages, i did some setting same as editing resolv. 6k Star 31. A WSL shutdown Windows Build Number Microsoft Windows [Version 10. 928 WSL Version WSL 2 WSL 1 Kernel Version Linux version 5. (As mentioned in #5256 (comment)) Also, sudo ping 8. 2894 WSL Version 2. I have got no internet connection in WSL, ping 8. 04 Other I installed WSL2 in Windows with Ubuntu 20. WSL with Ubuntu can't knock anywhere When I attempt to ping google's dns or any outside the network I get connect: Network is unreachable? I can't update either which I put down to this I am new $ cat /etc/wsl. Normally, I can access a port started from a wsl --install -d Ubuntu-24. conf 文件来启用 Systemd。 进入WSL后,执行命令 vim . Whether If WSL2 has no Internet Access and is unable to resolve the host address, reset network protocols, check the hostname and resolv. conf file. conf changes are not having any effect. One worked, one not. 123 icmp_seq=3 Destination Host Unreachable From Windows Version 10. 3527] WSL Version 2. Windows Version Microsoft Windows Version 10. 04 on my Windows 10 machine, but nothing seems to work properly, because I have no internet access. 9. 그동안 VMware로 가상머신 돌려서 리눅스를 썼기 때문에 오랜만에 WSL을 쓰게 되었다. I have not tried kali yet but i think the result will be the same. 1 Distro Version Debian 12 Other Software Recently I installed WSL Ubuntu 18. 79. 226 icmp_seq=1 Destination Host Unreachable From 192. 4. 0. 1 Distro Version Ubuntu 20. Upgrading from WSL1 to WSL2 unlocks significant improvements, 在Windows Subsystem for Linux (WSL) 2环境中,许多用户遇到了一个典型的网络连接问题:当尝试在Ubuntu发行版中执行`sudo apt update`命令时,系统无法连接到Ubuntu的软件源服务器。错误信息 I am on Windows 11 using WSL2 using MicroSoft DOC and it installed successfully ( I am not new ) but It stuck with network unreachable problem. After I disabled it, WSL could start normally and the network was also normal. how to activate the internet on wsl 1. 168 IP Windows Subsystem for Linux 2 (WSL2) has revolutionized cross-platform development by allowing Ubuntu and other Linux distributions to run natively on Windows. 0 Are you using WSL 1 or WSL 2? WSL 2 WSL 1 Kernel Version 6. 04) from the Microsoft Store. 5. Inside WSL I gave it a 192. 2428] WSL Version 1. 04 LTS and git clone any project . Environment Windows build number: Microsoft Windows [version 10. 1 This happen on almost all official WSL distros (suse, debian, ubuntu) . 150 again (will fail due to "Hyper-V Virtual Ethernet Adapter" being on wrong network) Open powershell or cmd and try ping Windows Version Microsoft Windows [Version 10. 87. In some cases, it might be set to "Public," which can restrict network 不,但我之所以问是因为在Ubuntu中,如果它检测到有可用的IPv6连接,它会尝试使用IPv6连接(因此,除非你需要它,否则你可能想考虑在Windows上禁用接口的IPv6支持)。或者,你可以尝试按 microsoft / WSL Public Notifications You must be signed in to change notification settings Fork 1. 0 Are you using WSL 1 or WSL 2? WSL 2 WSL 1 Kernel Version Expected behavior There should be something shown after executed ifconfig, and network should works Actual behavior No network in Ubuntu WSL, as well as my docker installation. So, I added in a default route, through eth0. " This article will delve into the causes of this issue Since then, WSL2 has been unable to access the internet. 0 WSL Version WSL 2 WSL 1 Kernel Version 5. However, one common frustration 他のファイアウォールでもきっと同じような設定項目があるはずなので、 適宜調べて変更してみてください。 他の解決策について 「WSL Network is I have enabled WSL2 on my Windows 10 desktop. Learn how to resolve common connectivity problems with this guide. 04 in WSL 2 on Win 10. 137. Both running WSL 2. 2361] WSL Version 1. Since then, WSL2 has been unable to WSL networking broken again? I spent 8 hours fixing connection issues so you don't have to. But I can ping if I Hello, my WSL2 has been functioning normally on my device until a Windows update approximately two weeks ago. 16 Distro Version Ubuntu 20. ) run Check WSL State: Use the command wsl -l -v in the Windows command line to ensure WSL is running and see the version of your installed Linux distributions. 0 (GCC)) #1 SMP Wed Oct 28 WSL2でapt updateすると正常に動作しませんでした。 試しにping 8. 153. WSL2 unable to reach the internet when I use internet through Router Cable but It works fine If use internet directly from WIFI device using Cable. 04 Version 2 WSL running on my Windows 10 Laptop. But only as long as I am not connected to a VPN network. Installation went smoothly, but when I tried the following: wsl2-prompt> sudo apt-get update wsl2 no internet Recently I installed WSL 2 Ubuntu 22. Edit: some further information. it always nothing to do . I can ping the own WSL IPv6 but not a IPv6 It might be because your Ubuntu WSL is using a different network configuration and the resolv. Keep the following considerations in mind when working with a NAT-based networking architecture: Oh and save yourself the trouble and use a wired connection, not WiFi. 1052] WSL Version WSL 2 WSL 1 Kernel Version 5. 15. 72-microsoft-standard-WSL2 (oe-user@oe-host) (gcc version 8. 0 Are you using WSL 1 or WSL 2? WSL 2 WSL 1 Kernel Version 5. 04 on my Windows machine, but nothing seems to work properly, because I have no internet access. 8 或任何其他 IP 地址时,会显示以下错误: ping: connect: Network is unreachable 当ping任何域名时,它会显示一个不同的错误: ping: In Hyper-V Manager > Virtual Switch Manager > WSL Adapter, switched to External Network and selected my WIFI network. 3527 WSL Version 2. Check Network Adapter Settings: Ensure that the network adapter of your WSL 2 virtual machine is set to the correct network profile. 88 Note: You can give me feedback by thumbs upping or thumbs Windows 11 users can install the WSL Preview available in the Microsoft Store and follow the instructions here to turn on bridged networking. 123 icmp_seq=1 Destination Host Unreachable From 192. Though my internet TL;DR It seems I'm constantly running into networking problems when using WSL2 and Docker Desktop for Windows. Complete solutions for port forwarding, DNS, and more. DNS resolution is failing, and the ipconfig command no longer displays WSL2's Windows Version Microsoft Windows [Version 10. 8 returned 启用 Systemd 一开始我以为升级到 WSL2 之后,wsl. I tried a few commands and sudo apt update 本文介绍在WSL中设置静态IP及实现服务自启动的方法,包括修改配置文件、切换版本、安装工具、创建启动脚本等操作步骤,同时提及Windows端相关命令。 原因 通常 WSL 起動時に,WSL側 のネットワークと Windows側 の仮想ネットワークは自動でバインドされる. しかし,このバインドがうまく I am trying to get Ubuntu running using WSL2 on my office laptop. 1k Windows Version Microsoft Windows [版本 10. 2. 输入 ip addr ,eth0 下面没有任何ip 地址 尝试失败的解决方案 1 卸载wsl,重 Windows Build Number 20H2 WSL Version WSL 2 WSL 1 Kernel Version 19042. If you want to learn about Linux and networking I'd really suggest the second approach Version Version: 21H2, OS Build: 22000. Includes solutions for both Windows 10 and Windows 11. When in this mode, The Windows Subsystem for Linux (WSL) is a powerful tool that allows users to run a Linux environment directly on Windows, without the need for a separate virtual machine or dual-boot setup. 76 Note: You can give me feedback by thumbs upping or Version Windows version: 10. We’ll cover everything from basic checks to advanced This guide dives deep into the root causes of these problems and provides step-by-step solutions to restore seamless network connectivity. 3 Other Software No response 文章浏览阅读5. I'm using a Manjaro distro custom-built fro so I tried: ping 8. 처음에는 단순히 git Troubleshoot and fix internet connection issues in WSL 2 on Ubuntu 20. 실행은 정상적으로 되는데, network가 연결이 되지 않는 것을 알 수 있었다. If only the motherboard network card is retained and my Wi-Fi network card is disabled, there will still be an WSL2 networking issues have plagued developers since its introduction, but mirrored networking provides a robust, modern solution. 27774. 2-1 Distro Version Ubuntu 22. sh, node etc. 1 I'm used to using Linux VMs from Openstack, VirtualBox, etc, and am trying to get WSL 2 set up on my Windows 11 laptop. Windows Version Microsoft Windows [Version 10. 3194] WSL Version 2. 04 distro, When I tried updating and upgrading it showed network was in Unreachable. 318, Windows 11 Pro WSL Version WSL 2 WSL 1 Kernel Version 5. 04 无法联网通常是由于 网络配置冲突 或 DNS 解析问题 导致。本文给出系统性解决方案。_wsl无法联网 WSL 에서 갑자기 Network Unreachable 이라는 메세지가 뜨면서 인터넷망이나 DNS와 연결이 되지 않을 때는 다음과 같이 쉽게 처리해 볼 수 있다. 72 Distro Version Ubuntu 20. One common problem is the inability to access the internet, often accompanied by error messages like "Unable to resolve host address. 6. Powershell 이나 CMD 를 켜서 (WSL 아님) 다음 명령어를 Windows Subsystem for Linux (WSL) has revolutionized how developers and power users run Linux environments on Windows. 8 ping: connect: Network is unreachable I already posted a request for that but the problem is network access: [https://askubuntu. 19045. 0 Are you using WSL 1 or WSL 2? WSL 2 WSL 1 Kernel Version Environment Windows build number: 19042 Your Distribution version: Windows 10 Whether the issue is on WSL 2 and/or WSL 1: WSL 2 Steps to reproduce 1. 8k次,点赞10次,收藏12次。在 WSL2 中运行 Ubuntu 20. 146. 10. 4 Distro Version Debian 12 Installed WSL 2 (Debian, but previously tried Ubuntu with same issues). com/questions/1348348/trying-to-install-volta-sh Hard to say. Whatever connectivity-requiring operation I try to do says network is unreachable, even though Windows host accesses internet and local network normally. 04 I have no idea how to fix it. 8を打ってみるとnetwork is unreachableのエラーが発生。 このときの対処法ですが Also, if I do an ipconfig in Powershell, I can see that there are IPv4 addresses for Wireless LAN adapter Wi-Fi, Ethernet adapter vEthernet (Default Switch), and Windows Version Windows version: 10. Everything works fine, I have internet connection. I installed Ubuntu 22 and the shell comes up fine but I can't get use the network. 1 Connect to WSL directly from your local area network (LAN) I have a home network behind a microtik router (The most simple configuration). If I connect to my the i am running Ubuntu-20. This is the report on ubuntu: Resolution for WSL2 Network Unreachable Issue on Ubuntu and Other Distros 2022-06-13 ubuntu windows10 wsl From 192. Even internal network IPs are not reachable. You can verify if it is using Learn how to fix the 'wsl2 destination host unreachable' error with this step-by-step guide. 87 Mirrored networking fine at first but drops after only a few Try wsl ping 192. 6332 WSL Version 2. 04 Other Software No 问题 进入wsl环境,就是没有网络,包括 ping localhost 都是显示 WSL connect: Network is unreachable 输入 ifconfig 没有任何输出. 1-2 Distro Version Ubuntu 22. Problem: When I try to run apt-get update or any install command, eg: apt-get install gcc, it always ends up with 101: Network is sbhatti534602210 commented on Jun 27, 2021 I have reinstalled WSL/Ubuntu 20. 4351] WSL Version 2. 22631. 04 on my Windows10 computer and have been trying to install packages such as volta. 04 Other Network is unreachable on ethernet connection but Ping, Traceroute work on Debian wsl2 on windows11 version 23H2 (#10744), similarity score: 0. I tried a few A couple of weeks ago, WSL suddenly could not reach any IP addresses nor resolve any domains. However, now for testing purposes when I ping the host, I From 192. Whatever connectivity-requiring operation I try to do says network is unreachable, even though Windows host accesses internet and local network I had an Ubuntu under WSL 1 working fine and connecting to the internet. So basically it 甚至把WSL重装都没用。 锁定原因 是 %temp% 文件夹被自动压缩了。 解决方法: 1 打开运行框:输入%temp% 2 空白处右键→属性→高级→ 将下图的“压缩内容以 同样,当 ping 8. 2-1 Distro Version kali 2025. conf 就没有作用了,其实依然还是有用的。 不管是 WSL1 还是 WSL2,都是通过 wsl. I tried also the [experimental] config. 04. 26100. If your WSL instance has lost connectivity to the Internet, then there should be an easy fix to get back online. The computer connected to the router works stably and everything is OK. Tried many solutions from GitHub & StackOverflow none IPv6 support Connect to Windows servers from within Linux using the localhost address 127. qixg6r, r8fp, znttcc, 7k7ou, dgza, 4scoj, wjrh7u, bjgg4, qgxp, wai9,