WSL: How to use 'mirrored' mode since 'bridged' networking mode stopped working with 23H2 (WSL 2.1.5)
Windows Version
Microsoft Windows [Version 10.0.22631.3155]
WSL Version
2.1.5.0
Are you using WSL 1 or WSL 2?
- WSL 2
- WSL 1
Kernel Version
6.2.7
Distro Version
Alpine Linux 3.17.3
Other Software
No response
Repro Steps
Config file .wslconfig
networkingMode = bridged
vmSwitch = WSL-Switch
Expected Behavior
The “bridged” networking mode as in the config below ceased to function with the 23H2 update, likely due to the introduction of the new “mirrored” mode.
networkingMode = bridged
vmSwitch = WSL-Switch
However, regarding the “mirrored” mode, the documentation only states that “Enabling this changes WSL to an entirely new networking architecture which aims to ‘mirror’ the network interfaces you have on Windows into Linux, to add new networking features and improve compatibility.” Unfortunately, there are no manuals available explaining the technical details of how to use “mirrored” mode!
Question:
- How can I re-enable functionality using “
networkingMode = bridged” and “vmSwitch = WSL-Switch” ? - Or how to achieve the same effect using “
networkingMode = mirrored”? - If possibe, please provide en example and where to find tech docs regarding how to use “mirrored” mode
Thanks in advance!
Actual Behavior
Config file .wslconfig
networkingMode = bridged
vmSwitch = WSL-Switch
Doesn’t work anymore and eth0 is not available in bridge mode.
Diagnostic Logs
No response
### Tasks
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 2
- Comments: 17
Coming to this late. But just wanted to mention that I’m disappointed that Bridged networking mode has been deprecated. I’d greatly prefer Bridged over Mirrored.
Hi I’m an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Open similar issues:
Closed similar issues:
Yes this is really bad, now going to have issues with NFS and rsync backups
I updated to 2.4.5 & when i ran wsl i get this “wsl: Bridged networking mode has been deprecated, please see https:😕/aka.ms/wslnetworking for information about supported networking modes”
Please follow the networking diagnostic script. https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#collect-wsl-logs-for-networking-issues
It should create a folder like [WslNetworkingLogs-date_ver.zip]
/logs