in latest wsl store preview 0.51.2 microsoft seems to have implemented bridging but this feature is not documented for some reason to enable bridging :

 

create an External hyper-v virtual switch which is bridged to your network
run wsl –shutdown
add this to your .wslconfig file

 

[wsl2] networkingMode=bridged vmSwitch=my-switch
just replace my-switch with the switch you have created
then start wsl it will be bridged
I just discovered it using process explorer

 

This works like a charm, however, I need WSL can access some services through FortiVPN. Before I set networkingMode=bridge, it was ok.

8 thoughts on “Windows 10 wsl2 networking”

Leave a Reply to Gal Jerman Cancel reply

Your email address will not be published.