Last active
June 28, 2022 04:47
-
-
Save takumaw/693f1e1071ed3b0f79d981c7c4ec7866 to your computer and use it in GitHub Desktop.
WSL2 to HyperV
This file contains 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
wsl --distribution Ubuntu --user root --cd ~ -- true | |
Get-NetIPInterface | | |
where {$_.InterfaceAlias -eq 'vEthernet (WSL)' -or $_.InterfaceAlias -eq 'vEthernet (Default Switch)'} | | |
Set-NetIPInterface -Forwarding Enabled |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment