Using WSL2 on my Windows 10 machine, I’m able to enable ICS (Internet Connection Sharing) to give internet connection to a Versin SoM, as suggested by @henrique.tx during a call some months ago.
Now I have a Windows 11 PC, and I installed WSL2.
Enabling ICS seems not working as expected, and pinging the SoM from WSL2 doesn’t work.
Wireshark shows that no ping packet is sent out from the ethernet port to the SoM.
Is there any specific setting for Windows 11?
Does someone have positive experience with this setup?
Hello @josep.tx
the steps are quite easy, and the SoM has internet connectivity (it can reach websites).
But internet connectivity is given by the physical machine (Windows 11).
The problem is that the SoM cannot be reached from WSL, and so ApolloX cannot work.
Pinging the SoM from Windows 11 works; pinging it from WSL never gives answer.
Just to have the full picture, does the WSL have internet access? Can you ping any website?
Yes.
And WSL can ping a device through an ethernet interface configured with static IP.
But if the interface has an IP assigned by ICS, the device cannot be pinged anymore.
I go on with this topic (I know it’s old, but I has never been solved).
Quick summary:
using Windows PC, ICS is necessary to give internet connection to the SoMs (since they cannot be connected directly to the corporate LAN - they’re not authorized to go on the web)
I would like to confirm the Extension supports Windows 11 using WSL2. It seems that the issue is related to your specific set up.
There are a few ways to work this around. One option could be setting up a restricted network for development, or alternately you can speak to your IT team, as this issue my be caused due to some restrictions on your company network.
Do you mean that your IT allows that you connect to your corporate LAN (where you have all your PCs, laptops, …) the SoMs and they can go to the web? I don’t think because in this case you can bring to the office whatever device you want and connect it to the web through this LAN (bad idea, IMHO).
Or do you have a separate LAN (with internet access) where you can connect the SoM?
As I wrote in my first post, I was not aware of ICS, it was a recommendation from @henrique.tx .
Can you explain which is “the setup” that allows the Extension working with Windows 11 and WSL2? Maybe I can ask my IT to evaluate this setup.
To clarify this is the set up we recommend: Unboxing and Setup Cables - Dahlia | Toradex Developer Center
We ensure that this works.
What I meant with your specific set up, is that if this set up does not work for you it may be related to some local configuration on your company network, and that you may want to double check with your IT team if there is anything preventing/blocking the connection.
I’ve just found that if ICS is used, the device can be reached from WSL if WSL network is congiured as Mirrored mode networking instead of the default NAT.