Skip to content

Instantly share code, notes, and snippets.

@takumaw
Last active June 28, 2022 04:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takumaw/693f1e1071ed3b0f79d981c7c4ec7866 to your computer and use it in GitHub Desktop.
Save takumaw/693f1e1071ed3b0f79d981c7c4ec7866 to your computer and use it in GitHub Desktop.
WSL2 to HyperV
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