Anyone who has used Hyper-V on a laptop is familiar with the pain of configuring Hyper-V virtual networking with wifi networking. You can now setup virtual switches for virtual machines that use NAT. This means that your virtual machines can use a private IP address and still access Internet resources. This approach is very compatible with wireless network adapters.
Here is how to do it with PowerShell:
- First create an internal switch.
New-VMSwitch -SwitchName “switch” -SwitchType Internal
- Find the virtual switch you created with the Get-NetAdapter
- Configure the NAT gateway using New-NetIPAddress
New-NetIPAddress -IPAddress 192.168.0.1 -PrefixLength 24 -InterfaceIndex 36
- And configure the NAT networking with New-NetNat
New-NetNat -Name nat -InternalIPInterfaceAddressPrefix 192.168.0.0/24
Connect the virtual machine
To connect the virtual machine to the NAT network, connect the internal switch you created in the first step to your virtual machine using the VM settings menu.
Manually configure your virtual machine’s IP configuration.
That’s it.
Be the first to comment on "Configure Hyper-V to use the Wireless in a Windows 10 computer"