Skip to content

Mirrored networking fine at first but drops after only a few minutes #11369

Description

Windows Version

Microsoft Windows [Versión 10.0.22631.3296]

WSL Version

2.1.5.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.146.1-microsoft-standard-WSL2

Distro Version

Ubuntu 22.04

Other Software

Versión de WSL: 2.1.5.0
Versión de kernel: 5.15.146.1-2
Versión de WSLg: 1.0.60
Versión de MSRDC: 1.2.5105
Versión de Direct3D: 1.611.1-81528511
Versión DXCore: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Versión de Windows: 10.0.22631.3296

Repro Steps

ping google.com
ping 1.1.1.1
curl github.com
sudo apt update -y

Expected Behavior

I expected to get connection on this commands and get them to work like with NAT mode.

Actual Behavior

When I first start up my WSL distro, the internet connection works perfectly for a few minutes before the network completely stops working, getting "Temporary failure in name resolution" (with dnsTunneling=false) and "Unreachable host" (with dnsTunneling=true).

My settings are:

.wslconfig

[wsl2]
networkingMode=mirrored

wsl.conf

[boot]
systemd=true`

I have tried setting dnsTunneling=true and false and still got no internet connection on WSL, I have also tried several distros, Ubuntu 16, Ubuntu 22 and Kali Linux, same result. NAT always works fine, is just mirrored that doesn't work for me.

I have been trying several "solutions" posted on similar issues this past week, like the ones on these issues:

This problem seems to be a generalized issue, as noted on several other comments with the exact same problem as I do:

I am a software engineer myself but I don't have knowledge on advance networking so I am unable to debug this by myself, I am happy to try any solutions you can come by. Thank you a lot and I hope we can get this fixed.

Diagnostic Logs

Collect WSL logs for networking issues

File size was too big for GitHub (So I uploaded it to google drive instead)

https://drive.google.com/file/d/1qB4J8Whv0KRwuNvgNjydH99N2ZZ06E-R/view?usp=sharing

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