New-SCStaticIPAddressPool

Creates a static IP address pool.

Description

The New-SCStaticIPAddressPool cmdlet creates a System Center Virtual Machine Manager static IP address pool. A static IP address pool can be associated with one or more host groups.

For more information about New-SCStaticIPAddressPool, type: "Get-Help New-StaticIPAddressPool -online".

Parameters

LogicalNetworkDefinition

Required? true
Accept Pipeline Input? false
Position? named
Specifies a logical network definition (also called a network site) that contains the subnet that the IP address pool serves as specified by the Subnet parameter.

Name

Required? true
Accept Pipeline Input? false
Position? named
Specifies the name of a VMM object.

Subnet

Required? true
Accept Pipeline Input? false
Position? named
Specifies an IP subnet (IPv4 or IPv6) in Classless Inter-Domain Routing (CIDR) notation.

Example format for an IPv4 subnet: 192.168.0.1/24
Example format for an IPv6 subnet: FD4A:29CD:184F:3A2C::/64

NOTE: An IP subnet cannot overlap with any other subnet in a host group or child host groups.

DefaultGateway

Required? false
Accept Pipeline Input? false
Position? named
Specifies a default gateway object.

Description

Required? false
Accept Pipeline Input? false
Position? named
States a description for the specified object.

DNSSearchSuffix

Required? false
Accept Pipeline Input? false
Position? named
Specifies one or more strings that are appended to a host name to resolve a DNS address.

DNSServer

Required? false
Accept Pipeline Input? false
Position? named
Specifies the IP address of one or more DNS servers. Valid formats: IPv4 or IPv6 address.

DNSSuffix

Required? false
Accept Pipeline Input? false
Position? named
Specifies the default DNS suffix associated with a NIC. 

Example format: -DNSSuffix "Domain01.Contoso.com"

EnableNetBIOS

Required? false
Accept Pipeline Input? false
Position? named
Indicates whether NetBIOS over TCP/IP is enabled for a NIC.

IPAddressRangeEnd

Required? false
Accept Pipeline Input? false
Position? named
Specifies the last IP address in a range of IP addresses. Use with IPAddressRangeStart.

IPAddressRangeStart

Required? false
Accept Pipeline Input? false
Position? named
Specifies the first IP address in a range of IP addresses. Use with IPAddressRangeEnd.

IPAddressReservedSet

Required? false
Accept Pipeline Input? false
Position? named
Specifies a set of IP addresses within an IP subnet that is reserved for other use.

JobVariable

Required? false
Accept Pipeline Input? false
Position? named
Specifies that job progress is tracked and stored in the variable named by this parameter. 

PROTipID

Required? false
Accept Pipeline Input? false
Position? named
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

RunAsynchronously

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the job runs asynchronously so that control returns to the command shell immediately. 

VIPAddressSet

Required? false
Accept Pipeline Input? false
Position? named
Specifies a set of IP addresses within an IP subnet that is reserved for configuring virtual IPs (VIPs) in load balancers.

VMMServer

Required? false
Accept Pipeline Input? true (ByValue)
Position? named
Specifies a VMM server object.

WINSServer

Required? false
Accept Pipeline Input? false
Position? named
Specifies the IP address of one or more WINS servers. Valid formats: IPv4 or IPv6 address.

Examples

1: Create a Static IP Address Pool
PS C:\> $HostGroup = Get-SCVMHostGroup | where { $_.Path -eq "All Hosts\HostGroup02\Production" }
PS C:\> $LogNet = Get-SCLogicalNetwork -Name "LogicalNetwork01"
PS C:\> $LogNetDef = Get-SCLogicalNetworkDefinition -VMHostGroup $HostGroup -LogicalNetwork $LogNet -Name "Logical Network Definition 01"
PS C:\> $DefaultGateway = New-SCDefaultGateway -IPAddress "10.0.0.1" -Metric 10
PS C:\> New-SCStaticIPAddressPool -LogicalNetworkDefinition $LogNetDef -Name "Production IP Address Pool" -Description "This IP address pool is used for LOB Apps in production" -Subnet "10.0.0.0/24" -IPAddressRangeStart "10.0.0.10" -IPAddressRangeEnd "10.0.0.99" -IPAddressReservedSet "10.0.0.25-10.0.0.35, 10.0.0.38" -VIPAddressSet "10.0.0.95-10.0.0.99" -DNSSuffix "domain.contoso.com" -DNSSearchSuffix domain1.contoso.com, domain2.contoso.com -DNSServer "10.0.0.1", "10.0.0.2" -WINSServer "10.0.0.1", "10.0.0.2" -DefaultGateway $DefaultGateway -EnableNetBIOS $True
The first command gets the host group with the path of All Hosts\HostGroup02\Production and stores it in the $HostGroup variable.

The second command gets the logical network named LogicalNetwork01 and saves it in the $LogNet variable.

The third command gets the logical network definition named Logical Network Definition 01 for the host group stored in the $HostGroup variable.

The fourth command creates a new default gateway and stores it in the $DefaultGateway variable.

The last command creates a new static IP address pool with the specified values.

See Also