Replies: 4 comments 6 replies
-
Port forwarding? There is only one WSL2 VM running at once. |
Beta Was this translation helpful? Give feedback.
-
You can hook up your WSL instances to your local network by creating a network bridge between the vEthernet (WSL) adapter and the adapter that is connected to your internal network.
Where 192.168.2.148 would be the IP address that you want your distro to have and 192.168.2.1 is your router IP (default gateway). This will check at startup if the IP address is hooked up to the local network and if not configure it. ImportantWindows has the tendency to remove one of the network adapters from the bridged interface upon reboot. So you have to remember to manually add the interfaces to the network bridge by going to the "Change adapter options" screen in the control panel, right-clicking the network bridge and going to Properties and selecting the WSL and local network adapters. Hope this helps |
Beta Was this translation helpful? Give feedback.
-
@pieterhouwen Does this still work/apply? I don't see "vEthernet (WSL) adapter" in the Network and Sharing Center anymore. I am on Windows 11 with WSL2. |
Beta Was this translation helpful? Give feedback.
-
Sorry for the necro but euhm, does this still apply to win10? Since my machine ain’t ready for win11 yet 😅 |
Beta Was this translation helpful? Give feedback.
-
Is it possible to set each wsl2 instance to have a different IP?
I tried to configure 1 Master and 3 Worker servers with wsl2, but each instance has the same IP, so I don't know how to solve it.
I want to configure a big data platform environment using wsl2.
It would be possible to assign a hyper-v virtual switch to each instance, but I don't know the detailed method, so please let me know.
Beta Was this translation helpful? Give feedback.
All reactions