Skip to content

Instantly share code, notes, and snippets.

@asegalj
asegalj / Hyper-V NAT for Windows Server 2016
Created July 31, 2019 05:15 — forked from AlexZ005/Hyper-V NAT for Windows Server 2016
Configuring NAT for Hyper-V Virtual Machines on Windows Server 2016
#1. Host machine
# Create new switch
New-VMSwitch -SwitchName NAT -SwitchType Internal
# Check current VM network adapters
Get-VMNetworkAdapter -VMName DC,FS
# Connect current adapters to created NAT switch
Connect-VMNetworkAdapter -VMName DC,FS -SwitchName NAT
# Add network adapters for both VM's with selected virtual switch
#Add-VMNetworkAdapter -VMName DC,FS -SwitchName NAT