WSL2 Network Routes
Hello!
I've upgraded to 2004, and upgraded my WSL installations to WSL2. Under WSL1 the linux distros shared the local PC nic. Under WSL2 they have their own nic, and IP address behind an internal switch (172.25.168.87). On my local network, I have two distinct networks. 192.168.1.0/24 and 172.16.0.0/24. I have a virtual machine acting as a router between them, and a static route on the local pc that directs traffic to the router for the 172.16.0.0/24 network.
When I attempt to access anything within the WSL2 distro on the 172.16.0.0/24 network communication fails. I can access anything on the 192.168.1.0/24 network because that's local to the PC, even though the WSL distro is behind another switch.
What route would I add within the WSL2 Distro to access the 172.16.0.0/24 network. This is all I have on current routes.
172.25.160.0/20 dev eth0 proto kernel scope link src 172.25.168.87
Destination Gateway Genmask Flags Metric Ref Use Iface
default ENTDESKTOP 0.0.0.0 UG 0 0 0 eth0
172.25.160.0 0.0.0.0 255.255.240.0 U 0 0 0 eth0