microsoft/WSL

Networking mode does not work in mirrored mode

Marc2p opened this issue · 3 comments

Windows Version

Microsoft Windows [Version 10.0.22631.3527

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

No response

Repro Steps

Configure the .wslconfig file as follows:
networkingMode=mirrored
dnsTunneling=true

Expected Behavior

Windows network interfaces are mirrored in wsl

Actual Behavior

A notification appears saying Errors have occurred during WSL startup and it is running in nat mode

Diagnostic Logs

WslNetworkingLogs-2024-04-30_08-47-29.zip

View similar issues

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!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Diagnostic information
.wslconfig found
Detected appx version: 2.1.5.0
optional-components.txt not found

do you have the "[wsl2]" tag before writing the networkingMode key ?

like below :

[wsl2]
networkingMode=mirrored