Skip to content

Set HPOVAddressPoolSubnet

Chris Lynch edited this page Nov 2, 2016 · 23 revisions

### HPE OneView 3.00 Library

Set-HPOVAddressPoolSubnet

Update an IPv4 Subnet Pool configuration.

SYNTAX

Set-HPOVAddressPoolSubnet [-IPv4Subnet] <Object> [-Gateway] <IPAddress> [-Domain] <String> [-DNSServers] <Array> [-ApplianceConnection] <Object> [<CommonParameters>]

Detailed 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-HPOVAddressPoolRange CMDLET.

Parameters

-ApplianceConnection <Object>

Aliases [-Appliance]

Specify one or more HPOneView.Appliance.Connection object(s) or Name property value(s). If Resource object is provided via Pipeline, the ApplianceConnection property of the object will be used.

Default Value: ${Global:ConnectedSessions} | ? Default

Aliases Appliance
Required? true
Position? named
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? true (ByPropertyName)
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

-Domain <String>

DNS Domain Name of the subnet.

Aliases None
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

-IPv4Subnet <Object>

The IPv4 Subnet resoruce object to update.

Aliases Subnet
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
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

HPOneView.Appliance.IPv4AddressSubnet [System.Management.Automation.PSCustomObject] IPv4 Address Subnet

Return Values

HPOneView.Appliance.IPv4AddressSubnet [System.Management.Automation.PSCustomObject] `nUpdated IPv4 Address Subnet

Examples

 -------------------------- EXAMPLE 1 --------------------------

PS C:> Get-HPOVAddressPoolSubnet 192.168.20.0 | Set-HPOVAddressPoolSubnet -Gateway 192.168.20.1

Update the IPv4 Subnet Address Pool's default gateway to the new address.

Related Links


Wiki Table of Contents

Clone this wiki locally