Skip to content

Instantly share code, notes, and snippets.

@PixelRobots
Last active June 14, 2017 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PixelRobots/0e4ac554373de47ab6174e5b8f6ab7e5 to your computer and use it in GitHub Desktop.
Save PixelRobots/0e4ac554373de47ab6174e5b8f6ab7e5 to your computer and use it in GitHub Desktop.
New-VMSwitch -SwitchName "NATvSwitch" -SwitchType Internal
New-NetIPAddress -IPAddress 10.10.10.1 -PrefixLength 24 -InterfaceAlias "vEthernet (NATvSwitch)"
New-NetNAT -Name "NATvNetwork" -InternalIPInterfaceAddressPrefix 10.10.10.0/24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment