Skip to content

Instantly share code, notes, and snippets.

@AhmadHirthani
Created September 13, 2020 20:47
Show Gist options
  • Save AhmadHirthani/5870600ed7c0c176cab18028b8930f0b to your computer and use it in GitHub Desktop.
Save AhmadHirthani/5870600ed7c0c176cab18028b8930f0b to your computer and use it in GitHub Desktop.
fix wsl2 network issue
# 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
@amuammer
Copy link

nice, it works with me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment