Windows 10 Providing Hyper-V VMs with network through custom NAT in Windows 10

  • Thread starter Thread starter Cal Dooras
  • Start date Start date
C

Cal Dooras

I'm trying to set up a NAT on Windows 10 to provide Hyper-V VMs with access to both Internet and Cisco AnyConnect VPN configured on the host machine. In accordance with this manual I executed the following PowerShell script: New-VMSwitch -SwitchName 'VM NAT switch' -SwitchType InternalNew-NetIPAddress -IPAddress '192.168.2.1' -PrefixLength 24 -InterfaceAlias 'vEthernet (VM NAT switch)'New-NetNat -Name 'VM NAT' -InternalIPInterfaceAddressPrefix '192.168.2.0/24'The script was successfully completed and VM NAT Switch was assigned to a VM. But the IP address the VM was provided with at startup wa

Continue reading...
 
Back
Top