Saturday, August 20, 2016

How to create a NAT switch in Windows 10 Hyper-V

To create a virtual NAT switch, open a PowerShell window with Admin rights and run the following command: New-VMSwitch -Name "NAT" -SwitchType NAT -NATSubnetAddress 10.0.75.0/24.
Now, run the following command to create the NAT object on the host system: New-NetNat –Name NAT –InternalIPInterfaceAddressPrefix 10.0.75.0/24.
Give your VM an IP like 10.0.75.10 with netmask 255.255.255.0.

No comments:

Post a Comment