-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wsl2 networking issue requires static ipaddr and route workaround #8
Comments
In my environment, I've solved the problem by adding the following to
then returns
I hope you will try it and let me know the results. |
with 2.0.20211005.0, ip and yum command not working
|
ok it's not just me then - did you ever figure this out? Kinda hard to debug internet commands when ping, nc, route, and even ip commands are not available and you can't install anything. :) |
Due to a known wsl2 networking issue, some users need to create a static ip and route to establish internet access.
microsoft/WSL#4275
to fix on Ubuntu the steps are
to match this on this distro I manually verified with
this returns for ip addr // route
and works as expected to access internet.
trying to automate it, I updated
/etc/sysconfig/network-scripts/ifcfg-eth0
wsl --shutdown
restart but ip addr still returns
so tried adding to .bash rc
is there a way to automate the static IP addr and route at wsl2 launch?
The text was updated successfully, but these errors were encountered: