PowerShell Logo Small

New-NetNat



This is the built-in help made by Microsoft for the command 'New-NetNat', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Creates a NAT object.

SYNTAX


New-NetNat [-Name] <String> [-AsJob] [-CimSession <CimSession[]>] [-InternalRoutingDomainId <String>] [-ThrottleLimit <Int32>] -ExternalIPInterfaceAddressPrefix <String>
[-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The New-NetNat cmdlet creates a Network Address Translation (NAT) object that translates an internal network address to an external network address. NAT modifies IP address
and port information in packet headers.


You can modify some settings by using the Set-NetNat cmdlet.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=294375
Get-NetNat
Remove-NetNat
Set-NetNat

REMARKS

<

Examples


Example 1: Create a NAT object for a routing domain

PS C:\> New-NetNat -Name "TSQATenant" -ExternalIPInterfaceAddress "a.b.c.0/24" -InternalRoutingDomainId "{bb47986c-f134-4a29-ad87-24010bf2c92f}"



This command creates a NAT object named TSQATenant. The command specifies an IP interface address and internal routing domain for TSQATenant. This example uses the
placeholder a.b.c.0/24 to represent a public Internet address prefix.




Example 2: Create a NAT object for all the computers on a subnet

PS C:\> New-NetNat -Name "AllTenants" -ExternalIPInterfaceAddress "a.b.c.0/24"



This command creates a NAT object named AllTenants for all the computers in the specified subnet. This example uses the placeholder a.b.c.0/24 to represent a public Internet
address prefix.