Mundy

IT Knowledge Base

User Tools

Site Tools


set_up_nat_in_windows_server_2016_for_hyper-v_vms

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

set_up_nat_in_windows_server_2016_for_hyper-v_vms [2018/04/09 09:56] (current)
Line 1: Line 1:
 +====== Setting up NAT in Windows Server 2016 for Hyper-V Hosts ======
  
 +<code powershell>​
 +New-VMSwitch -SwitchName Internal -SwitchType Internal
 +Get-NetAdapter
 +Net-NetIPAddress -IPAddress 172.16.0.1 -PrefixLength 24 -InterfaceIndex 17
 +New-NetNat -Name NAT -InternalIPInterfaceAddressPrefix 172.16.0.0/​24
 +<​-code>​
 +
 +Source: https://​docs.microsoft.com/​en-us/​virtualization/​hyper-v-on-windows/​user-guide/​setup-nat-network
set_up_nat_in_windows_server_2016_for_hyper-v_vms.txt ยท Last modified: 2018/04/09 09:56 (external edit)