WSL mirrored mode networking not working

Windows Subsystem for Linux has a new networking mode named “mirrored”. I’m trying to use it with the official Fedora 42 image for WSL. I have

[wsl2]
networkingMode = mirrored

on my C:\Users\username\.wslconfig. On Windows’ CMD, I run

wsl --shutdown
wsl -d FedoraLinux-42

and on Fedora

curl https://google.com

the output is

curl: (6) Could not resolve host: google.com

Does anyone has the WSL mirrored mode networking working? Thanks!

It works for me, however I have a slight syntax difference in the .wslconfig file. No spaces around the =.

[wsl2]
networkingMode=mirrored

Does that change make it work for you?

1 Like

Remove the spaces around the = fixed the problem. Thanks!