Configuring host networking
The Get-VMHostNetwork
cmdlet will retrieve information about the network on a specific host. This cmdlet has the following syntax:
Get-VMHostNetwork [-Server <VIServer[]>] [-VMHost] <VMHost[]>
[<CommonParameters>]
The -VMHost
parameter is required.
In the following example, we will retrieve the information about the network on the host 192.168.0.133
, and format the output as a list:
PowerCLI C:\> Get-VMHost -Name 192.168.0.133 | Get-VMHostNetwork | >> Format-List *
The output of the preceding command is as follows:
WARNING: The 'VMKernelGatewayDevice' property of VMHostNetworkInfo type is deprecated and will be removed in a future release. WARNING: The 'VirtualSwitch' property of VMHostNetworkInfo type is deprecated. Use 'Get-VirtualSwitch' cmdlet instead. WARNING: The 'PhysicalNic' property of VMHostNetworkInfo type is deprecated. Use 'Get-VMHostNetworkAdapter' cmdlet instead. WARNING: The 'ConsoleNic...