Set-VMHostNetworkStack

This cmdlet configures the specified host network stack.

Syntax

-NetworkStack  <HostNetworkStack[]>
[-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
NetworkStack
HostNetworkStack[] named
  • pipeline
  • Specifies the network stack that you want to configure.
    optional
    CongestionControlAlgoritm
    HostNetworkStackCongestionControlAlgoritm named Specifies the TCP congest control algorithm used by the network stack.
    optional
    DnsAddress
    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
    DnsFromDhcp
    Boolean named Specifies whether or not DHCP (dynamic host control protocol) is used to determine DNS configuration automatically.
    optional
    DomainName
    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
    HostName
    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
    MaxNumberOfConnections
    Int32 named Specifies the maximum number of socket connections that can be requested on the network stack.
    optional
    Name
    String named Specifies a new name for the network stack.
    optional
    SearchDomain
    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
    Server
    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
    VMKernelGateway
    String named Specifies an IP address for the default gateway using an IPv4 dot notation.
    optional
    VMKernelV6Gateway
    String named Specifies the default IPv6 gateway using the following format: / or . If you skip , the default value of 64 is used.

    Output

    VMware.VimAutomation.ViCore.Types.V1.Host.Networking.HostNetworkStack

    Examples


    Example 1

    $vmHostNetworkStack = Get-VMHostNetworkStack -VMHost Host
    Set-VMHostNetworkStack -Network $vmHostNetworkStack -VMKernelGateway 10.23.11.11 -DomainName eng.vmware.com -HostName Host1 -DnsFromDhcp $false

    Retrieves the network stack configuration of the virtual machine host named Host.

    Related Commands

    Feedback

    Was this page helpful?