Skip to content

Instantly share code, notes, and snippets.

@oscarandreu
Created May 27, 2019 09:56
Show Gist options
  • Save oscarandreu/5ea1e8f59f4b78b6ca6e457a684632ce to your computer and use it in GitHub Desktop.
Save oscarandreu/5ea1e8f59f4b78b6ca6e457a684632ce to your computer and use it in GitHub Desktop.
Configure an NAT adapter with Hyper-V
Get-NetAdapter
New-NetIPAddress -IPAddress 192.168.0.1 -PrefixLength 24 -InterfaceIndex 7
New-NetNat -Name MyNATnetwork -InternalIPInterfaceAddressPrefix 192.168.0.0/24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment