Networking broken with WSL2 and Windows 11 when using networkingMode=mirrored
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 33.7k
- Forks
- 1.8k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 116
Description
### Windows Version
Microsoft Windows [Version 10.0.22631.5768]
### WSL Version
2.5.10.0
### Are you using WSL 1 or WSL 2?
- [x] WSL 2
- [ ] WSL 1
### Kernel Version
Linux version 6.6.87.2-microsoft-standard-WSL2 (root@439a258ad544) (gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.37) #1 SMP PREEMPT_DYNAMIC Thu Jun 5 18:30:46 UTC 2025
### Distro Version
Ubuntu 24.04
### Other Software
_No response_
### Repro Steps
PS> wsl
$ ping 8.8.8.8
ping: connect: Network is unreachable
$ ip addr show
1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet 10.255.255.254/32 brd 10.255.255.254 scope global lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
$ curl www.google.com
curl: (6) Could not resolve host: www.google.com
### Expected Behavior
Ping works and there is output showing HTML/CSS/JavaScript code from the curl command.
### Actual Behavior
See repro steps above.
### Diagnostic Logs
[WslNetworkingLogs-2025-09-05_16-49-33.zip](https://github.com/user-attachments/files/22181263/WslNetworkingLogs-2025-09-05_16-49-33.zip)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure in WSL2 on Windows 11 with networkingMode=mirrored, then inspect the attached WslNetworkingLogs archive alongside the reported ip addr, ping, and curl results. Done means the Ubuntu instance has working network connectivity, ping to 8.8.8.8 succeeds, and curl www.google.com returns HTML/CSS/JavaScript output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, linux
- Domain
- networking, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100