You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I would like to use WSL in a private local network with a bridged adapter as well as retaining the orginal network inteface for internet access over the host.
Describe the solution you'd like
First connect the host to two network.
a. Using inteface0 to connect to a network with a router that allows internet access, also used for the host.
b. Using inteface1 to connect to a private network with its own dhcp server and no connection to other networks.
Create a special hyper-v switch that is using the external mode connected to interface1.
Configure WSL to use both the default switch with nat and the special switch in bridged mode preferably distribution specific in /etc/wsl.conf instead of a global setting in .wslconf.
Both Networks are accessible through eth0 and eth1 respectively within WSL.
Describe alternatives you've considered
Currently only access to one network is possible through the setting [wsl2] networkingMode = bridged vmSwitch= SPECIAL_SWITCH in the global .wslconf Commenting it out when the default networking setup for internetaccess is required which in turn requires a restard of WSL as a whole.
The text was updated successfully, but these errors were encountered:
I want to use two network in wsl.For example,they are "wan_switch" and "wifi_switch".As shown in the figure, I have set up the virtual switch on hyper-v.What should I do? How to set on the. wslconfig file?networkingMode=bridged vmSwitch=wan_switch,wifi_switch,Is that so?
I face the same problem because I would like to use simultaneously a USB serial device in my Linux WSL and an Ethernet connection again in my Linux WSL which has to be connected through my host's ethernet network device by setting the Linux's WSL network mode to "bridged". After setting the network mode to bridged, I loose the USB connection because the USB connection needs another vmswitch.
Is your feature request related to a problem? Please describe.
I would like to use WSL in a private local network with a bridged adapter as well as retaining the orginal network inteface for internet access over the host.
Describe the solution you'd like
a. Using inteface0 to connect to a network with a router that allows internet access, also used for the host.
b. Using inteface1 to connect to a private network with its own dhcp server and no connection to other networks.
/etc/wsl.conf
instead of a global setting in.wslconf
.Describe alternatives you've considered
Currently only access to one network is possible through the setting
[wsl2] networkingMode = bridged vmSwitch= SPECIAL_SWITCH
in the global.wslconf
Commenting it out when the default networking setup for internetaccess is required which in turn requires a restard of WSL as a whole.The text was updated successfully, but these errors were encountered: