# Data Object - VirtualEthernetCard(vim.vm.device.VirtualEthernetCard)

Extended by
  VirtualE1000, VirtualE1000e, VirtualPCNet32, VirtualSriovEthernetCard, VirtualVmxnet
Extends
  VirtualDevice
See also
  VirtualEthernetCardResourceAllocation
Since
  2.0

## Data Object Description

The VirtualEthernetCard data object contains the properties of an Ethernet adapter attached to a virtual machine.

Properties

Name | Type | Description
--- | --- | ---
addressType* | xsd:string | MAC address type. Valid values for address type are: Manual Statically assigned MAC address. Generated Automatically generated MAC address. Assigned MAC address assigned by VirtualCenter.
externalId* | xsd:string | An ID assigned to the virtual network adapter by external management plane or controller. The value and format of this property is determined by external management plane or controller, and vSphere doesn't do any validation. It's also up to external management plane or controller to set, unset or maintain this property. Setting this property with an empty string value will unset the property. Since vSphere API 6.0
macAddress* | xsd:string | MAC address assigned to the virtual network adapter. Clients can set this property to any of the allowed address types. The server might override the specified value for "Generated" or "Assigned" if it does not fall in the right ranges or is determined to be a duplicate.
resourceAllocation* | VirtualEthernetCardResourceAllocation | Resource requirements of the virtual network adapter Since vSphere API 6.0
uptCompatibilityEnabled* | xsd:boolean | Deprecated. As of vSphere API 8.0. VMDirectPath Gen 2 is no longer supported and there is no replacement. Indicates whether UPT(Universal Pass-through) compatibility is enabled on this network adapter. UPT is only compatible for Vmxnet3 adapter. Clients can set this property enabled or disabled if ethernet virtual device is Vmxnet3. Since vSphere API 6.0
wakeOnLanEnabled* | xsd:boolean | Indicates whether wake-on-LAN is enabled on this virtual network adapter. Clients can set this property to selectively enable or disable wake-on-LAN.
Properties inherited from VirtualDevice
backing, connectable, controllerKey, deviceGroupInfo, deviceInfo, key, numaNode, slotInfo, unitNumber
Properties inherited from DynamicData
None

*Need not be set
Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:pbm="urn:pbm" name="VirtualEthernetCard"> <complexContent> <extension base="pbm:VirtualDevice"> <sequence> <element name="addressType" type="xsd:string" minOccurs="0"/> <element name="macAddress" type="xsd:string" minOccurs="0"/> <element name="wakeOnLanEnabled" type="xsd:boolean" minOccurs="0"/> <element name="resourceAllocation" type="pbm:VirtualEthernetCardResourceAllocation" minOccurs="0"/> <element name="externalId" type="xsd:string" minOccurs="0"/> <element name="uptCompatibilityEnabled" type="xsd:boolean" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>