I would like to be able to use a bridged network with wsl2. I couldn't find a way to do it.
I would like to be able to use a bridged network with wsl2. I couldn't find a way to do it.
I just open Windows Network adapter properties and create bridge between local network adapter and WSL adapter. Then I add IP address to eth0 inside my Ubuntu and I see that LAN is accessable from WSL.
# ip a add <IP>/<mask> dev eth0
then i change default route and DNS settings
# ip r del default
# ip r add default via <router IP>
edit /etc/resolv.conf and set your DNS (8.8.8.8?)
what do you mean by
create bridge between local network adapter and WSL adapter
you cant do that in windows
Hi,
I found a similar thread, you can take a look at edwindijas’s solution and check if it could help at your side:
https://github.com/microsoft/WSL/issues/4150
And this thread also may be helpful:
https://www.reddit.com/r/bashonubuntuonwindows/comments/hdmspt/using_bridged_networking_to_get_outside_access_to/
Thanks for your time!
Best Regards,
Mico Mi
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Unfortunately, it doesn't work for me. (maybe it has to do with the home version that I am using)
Hi, what is the home version you are using?
Best regards,
Mico Mi
Hello,
Sorry for troubling, but .. any kind of port forwarding workaround solution kind of can not fix what is asked here. As having access to the host network is something completely different from network packets / connections forwarded from a port to another port which exists only virtually somewhere in host's memory.
Is there perhaps any change Ms will reconsider this behavior? As the promoted port forwarding is inconvenient to use and also blocks the wls virtual to interact with the host network directly.
Best Regards,
Su
8 people are following this question.
Hyper-V vmconnect can't connect to virtual machines - Windows 10 1809 and 1903
Change Hyper-V (Default Switch) IP address range
Cannot delete network switch devices after removing Hyper-V
For Windows 10 Pro and up, will there soon be a replacement for RemoteFX in Hyper-V?
Hyper-V showing much higher memory demand than displayed in guest OS