Set-VMHostNetworkStack
This cmdlet configures the specified host network stack.
Syntax
[-CongestionControlAlgoritm <HostNetworkStackCongestionControlAlgoritm>]
[-DnsAddress <String[]>]
[-DnsFromDhcp <Boolean>]
[-DomainName <String>]
[-HostName <String>]
[-MaxNumberOfConnections <Int32>]
[-Name <String>]
[-SearchDomain <String[]>]
[-Server <VIServer[]>]
[-VMKernelGateway <String>]
[-VMKernelV6Gateway <String>]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
HostNetworkStack[] | named |
|
Specifies the network stack that you want to configure. | optional |
|
HostNetworkStackCongestionControlAlgoritm | named |
|
Specifies the TCP congest control algorithm used by the network stack. | optional |
|
String[] | named |
|
Specifies the IP addresses of the DNS servers, placed in order of preference. Note: When DHCP is not enabled, the property can be set explicitly. When DHCP is enabled, the property cannot be set. | optional |
|
Boolean | named |
|
Specifies whether or not DHCP (dynamic host control protocol) is used to determine DNS configuration automatically. | optional |
|
String | named |
|
Specifies the domain name portion of the DNS name. For example, "vmware.com". Note: When DHCP is not enabled, the property can be set explicitly. When DHCP is enabled, the property cannot be set. | optional |
|
String | named |
|
Specifies the host name portion of DNS name. For example, "esx01". Note: When DHCP is not enabled, the property can be set explicitly. When DHCP is enabled, the property cannot be set. | optional |
|
Int32 | named |
|
Specifies the maximum number of socket connections that can be requested on the network stack. | optional |
|
String | named |
|
Specifies a new name for the network stack. | optional |
|
String[] | named |
|
Specifies the domain in which to search for hosts, placed in order of preference. Note: When DHCP is not enabled, the property can be set explicitly. When DHCP is enabled, the property cannot be set. | optional |
|
VIServer[] | named |
|
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet. | optional |
|
String | named |
|
Specifies an IP address for the default gateway using an IPv4 dot notation. | optional |
|
String | named |
|
Specifies the default IPv6 gateway using the following format: |
Output
VMware.VimAutomation.ViCore.Types.V1.Host.Networking.HostNetworkStack
Examples
Example 1
Retrieves the network stack configuration of the virtual machine host named Host.
Related Commands
VMHost
VMHostAccount
VMHostAdvancedConfiguration
VMHostAuthentication
VMHostAvailableTimeZone
VMHostDiagnosticPartition
VMHostDisk
VMHostDiskPartition
VMHostFirewallDefaultPolicy
VMHostFirewallException
VMHostFirmware
VMHostHardware
VMHostHba
VMHostModule
VMHostNetwork
VMHostNetworkAdapter
VMHostNetworkStack
VMHostNtpServer
VMHostPatch
VMHostPciDevice
VMHostProfile
VMHostProfileCompliance
VMHostProfileImageCacheConfiguration
VMHostProfileRequiredInput
VMHostProfileStorageDeviceConfiguration
VMHostProfileUserConfiguration
VMHostProfileVmPortGroupConfiguration
VMHostRoute
VMHostService
VMHostSnmp
VMHostStartPolicy
VMHostStorage