can i create a bridged network for wsl2
yes; you can
I am using WSL2 Debian, so these are my notes:
wsl –shutdown
create a file .wslconfig in C:\Users\your_user_name make sure file name is .wslconfig, not extension .txt etc…
[wsl2]
networkingMode=bridged
vmSwitch=wsl
memory=4GB # Limits VM memory in WSL 2 to 4 GB
processors=5 # Makes the WSL 2 VM use 5 virtual processors
[network]
generateHosts=false
generateResolvConf=false
reboot, or restart your wsl2 process .
get back to wsl2 command prompt, meaning you are at Linux command
sudo ip add flush dev eth0
sudo ip addr add 192.168.1.30/24 dev eth0
sudo ip route add default via 192.168.1.1 dev eth0
sudo ip addr add 192.168.1.30/24 dev eth0
sudo ip route add default via 192.168.1.1 dev eth0
Are you talking about windows 10 Pro or Enterprise OS?