nic
The <nic> element specifies the virtual network adapter to be updated on the host by the host operating-system network adapter.
The following table contains the definitions of the child elements of <nic>:
Child elements of <nic>
Element | Definition | Required |
|---|---|---|
<ip> | Contains the IP address elements of the virtual network adapter that must be updated | No |
<dhcp> | Indicates whether dynamic host control protocol (DHCP) is enabled | Yes |
<ip-address> | Specifies the IP address used by the network adapter
| No |
<subnet-mask> | Specifies the subnet mask
| Conditional |
<mac> | Specifies the media access control (MAC) address of the virtual network adapter | No |
<portgroup> | Specifies the name of the port group to which the virtual NIC connects | No |
<mtu> | Specifies the maximum transmission unit for the packet, in bytes, for the virtual NIC | No |
The following figure shows the XML sample for <nic>:
XML sample for <nic>
<ip>
<dhcp></dhcp>
<ip-address></ip-address>
<subnet-mask></subnet-mask>
</ip>
<mac></mac>
<portgroup></portgroup>
<mtu></mtu>
</nic>