Configuring a Standard
Virtual Switch
To use a VMware standard virtual switch, you
use the following elements to configure the switch on an ESXi host.
- HostNetworkSystem– Managed object that represents the host’s networking configuration. This object’s properties point to the networking data objects you can use for network management, includingHostDnsConfigandHostIpRouteConfig.HostNetworkSystemproperties allow you to accessHostNetCapabilitiesandHostNetworkInfodata objects, and access and modify theHostNetworkConfigdata object.HostNetworkSystemincludes methods for retrieving and changing the network configuration. See theAPI Referencefor a complete list of methods and the permissions required to run them.
- HostNetworkConfig– Allows you to specify the network configuration for the host. You can apply the configuration by running theHostNetworkSystem.UpdateNetworkConfigmethod.
- Network– Represents a network accessible by either hosts or virtual machines. This can be a physical network or a logical network, such as a VLAN.When you add a host to a vCenter Server system, or when you add a virtual machine to an ESX/ESXi host, aNetworkis added automatically.
- HostSystem.QueryHostConnectionInfoandDatacenter.QueryConnectionInfoboth return aHostConnectInfodata object, which describes the current network configuration.
HostSNMPSystem
– Supports SNMP setup. See
Setting Up SNMP.