Created
September 13, 2020 20:47
-
-
Save AhmadHirthani/5870600ed7c0c176cab18028b8930f0b to your computer and use it in GitHub Desktop.
fix wsl2 network issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# refrence: https://github.com/microsoft/WSL/issues/4926 | |
ip route delete default | |
sudo ip route delete default | |
sudo ip route add default via 192.168.137.1 | |
ip route | |
sudo nano /etc/resolv.conf # put name server:8.8.8.8 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nice, it works with me