PowerCLI Reference

Set-OrgVdcNetwork

Synopsis

This cmdlet modifies the configuration of the specified organization network.

Syntax

Set-OrgVdcNetwork [-OrgVdcNetwork] <OrgVdcNetwork[]> [-Description <String>] [-DnsSuffix <String>] [-Name <String>] [-PrimaryDns <IPAddress>] [-SecondaryDns <IPAddress>] [-Server <CIServer[]>] [-StaticIPPool <IPRangeList>] [-WhatIf] [<CommonParameters>]

Related Commands

Get-OrgVdcNetwork
New-OrgVdcNetwork
Remove-OrgVdcNetwork

Detailed Description

This cmdlet modifies the configuration of the specified organization VDC network. Note: This cmdlet is only available to Provider Administrators.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
OrgVdcNetworkOrgVdcNetwork[]Specifies the organization VDC network that you want to configure.trueTrue (ByValue)
DescriptionStringSpecifies a new description for the organization VDC network that you want to configure.falseFalse
DnsSuffixStringSpecifies a new Domain Name System (DNS) suffix for the organization VDC network that you want to configure.falseFalse
NameStringSpecifies a new name for the organization VDC network that you want to configure.falseFalse
PrimaryDnsIPAddressSpecifies a new primary Domain Name System (DNS) for the organization VDC network that you want to configure.falseFalse
SecondaryDnsIPAddressSpecifies a new secondary Domain Name System (DNS) for the organization VDC network that you want to configure.falseFalse
ServerCIServer[]Specifies the cloud servers on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-CIServer cmdlet.falseFalse
StaticIPPoolIPRangeListSpecifies a new range of static IP addresses that the organization VDC network will allocate to virtual machines.falseFalse
WhatIfSwitchParameterIndicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falseFalse

Return Type

Zero or more modified OrgVdcNetwork objects

Notes

Examples

-------------------------- Example 1 --------------------------

$myOrgNetwork = Get-OrgVdcNetwork -Name 'MyInternalOrgNetwork'
Set-OrgVdcNetwork -OrgVdcNetwork $myOrgNetwork -DnsSuffix "myOrgNewDns" -PrimaryDns "192.168.10.1" -SecondaryDns "192.168.10.2"

Modifies the DNS settings for the specified internal organization VDC network.

-------------------------- Example 2 --------------------------

$myOrgNetwork = Get-OrgVdcNetwork -Name 'MyInternalOrgNetwork'
Set-OrgVdcNetwork -OrgVdcNetwork $myOrgNetwork -StaticIpPool "192.168.10.42-192.168.10.66"

Changes the range of static IP addresses that are available for the organization VDC network to allocate to virtual machines.


Copyright © VMware, Inc. All rights reserved.