PowerShell Logo Small

Add-NetNatExternalAddress



This is the built-in help made by Microsoft for the command 'Add-NetNatExternalAddress', 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

Adds an external address to a NAT instance.

SYNTAX


Add-NetNatExternalAddress [-NatName] <String> [-AsJob] [-CimSession <CimSession[]>] [-PortEnd <UInt16>] [-PortStart <UInt16>] [-ThrottleLimit <Int32>] -IPAddress <String>
[-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Add-NetNatExternalAddress cmdlet adds an external address to a network address translation (NAT) instance.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkID=294368
Get-NetNatExternalAddress
Remove-NetNatExternalAddress

REMARKS

<

Examples


Example 1: Add an external address

PS C:\> Add-NetNatExternalAddress -IPAddress "a.b.c.0/24"



This command adds the external address 10.20.30.120 to a NAT. This example uses the placeholder a.b.c.0/24 to represent a public Internet address prefix.




Example 2: Add an external address and a port range

PS C:\> Add-NetNatExternalAddress -IPAddress "a.b.c.0/24" -PortEnd 19999 -PortStart 10000



This command adds an external address to a specified NAT, and specifies a range of ports to use for outbound connections. This example uses the placeholder a.b.c.0/24 to
represent a public Internet address prefix.