Skip to content

Instantly share code, notes, and snippets.

@PixelRobots PixelRobots/New_NAT-vSwitch.ps1 Secret
Last active Jun 14, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.