Skip to content

Instantly share code, notes, and snippets.

@mikerodionov
Created March 13, 2020 20:06
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 mikerodionov/778f6ddf7ff28ccd8aa50419ae3e85a0 to your computer and use it in GitHub Desktop.
Save mikerodionov/778f6ddf7ff28ccd8aa50419ae3e85a0 to your computer and use it in GitHub Desktop.
New-VMSwitch -SwitchName “NATSwitch” -SwitchType Internal
New-NetIPAddress -IPAddress 192.168.210.1 -PrefixLength 24 -InterfaceAlias “vEthernet (NATSwitch)”
New-NetNAT -Name “NATNetwork” -InternalIPInterfaceAddressPrefix 192.168.210.0/24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment