Allow WSL to talk with Hyper-V VMs
Enter this command in powershell to enable forwarding:
Get-NetIPInterface | where {$_.InterfaceAlias -eq 'vEthernet (WSL)' -or $_.InterfaceAlias -eq 'vEthernet (Default Switch)'} | Set-NetIPInterface -Forwarding Enabled -Verbose
Credits goes to this link (thanks!) https://automatingops.com/allowing-windows-subsystem-for-linux-to-communicate-with-hyper-v-vms
Comments
Post a Comment