New-OVAddressPoolSubnet
Syntax
New-OVAddressPoolSubnet
[-NetworkId] <IPAddress>
[-SubnetMask] <String>
[-Gateway] <IPAddress>
[-Domain] <String>
[-DNSServers] <Array>
[-ApplianceConnection] <Object>
[<CommonParameters>]
Description
This Cmdlet will assist with creating a new IPv4 address pool. When creating a new IPv4 Address Subnet, you must provide the Network ID, Subnet Mask (CIDR [e.g. 24] or IPv4 Address Value [e.g. 255.255.255.0]), Gateway and Domain Name. DNS Servers are optional.
To add IPv4 Address Ranges to a Subnet after creating it, please use the New-OVAddressPoolRange Cmdlet.
Examples
Example 1
PS C:> New-OVAddressPoolSubnet -NetworkID 192.168.10.0 -Subnetmask 24 -Gateway 192.168.10.254 -Domain vlan10.domain.com -DNSServers 10.250.33.12,10.250.34.80
Create a new IPv4 address pool with the specified values.
Parameters
-NetworkId <IPAddress>
The IPv4 Network ID value of the subnet.
| Aliases | None |
|---|---|
| Required? | True |
| Position? | Named |
| Default value | |
| Accept pipeline input? | false |
| Accept wildcard characters? | False |
-SubnetMask <String>
CIDR [e.g. 24] or IPv4 Address Value [e.g. 255.255.255.0]
| Aliases | PrefixLength |
|---|---|
| Required? | True |
| Position? | Named |
| Default value | |
| Accept pipeline input? | false |
| Accept wildcard characters? | False |
-Gateway <IPAddress>
IPv4 Address of the default gateway for the subnet.
| Aliases | None |
|---|---|
| Required? | True |
| Position? | Named |
| Default value | |
| Accept pipeline input? | false |
| Accept wildcard characters? | False |
-Domain <String>
DNS Domain Name of the subnet.
| Aliases | None |
|---|---|
| Required? | True |
| Position? | Named |
| Default value | |
| Accept pipeline input? | false |
| Accept wildcard characters? | False |
-DNSServers <Array>
An array of DNS Server IPv4 Addresses.
| Aliases | None |
|---|---|
| Required? | True |
| Position? | Named |
| Default value | |
| Accept pipeline input? | false |
| Accept wildcard characters? | False |
-ApplianceConnection <Object>
Specify one or more [HPEOneView.Appliance.Connection] object(s) or Name property value(s).
| Aliases | Appliance |
|---|---|
| Required? | True |
| Position? | Named |
| Default value | (${Global:ConnectedSessions} | ? Default) |
| Accept pipeline input? | false |
| Accept wildcard characters? | False |
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216)
Input Types
None. You cannot pipe objects to this Cmdlet.
Return Values
Newly created IPv4 Address Subnet