The dpmvc-addvmvnic command adds a virtual NIC to a VM.
This command has the following format:
dpmvc-addvmvnic [-datacenter_name datacentername] -vm_name vmname -vc_server vcservername -devicetype {e1000 | vmxnet} -network_name networkname [-mac_address macaddress] -wake_on_lan_enabled {no | yes}
(Optional) Specifies the data center where the VM is located.
Specifies the VM.
Specifies the vCenter Server to access when you have multiple vCenter Servers. Optional for single vCenter Server environments.
Indicates the type of network device.
Specifies the virtual network the NIC must be connected to. You can distinguish the names of Standard Switches and Distributed Virtual Switches based on the following naming convention:
(Optional) Specifies the MAC (Media Access Control) address of the network device.
Indicates whether to start the VM when LAN is enabled.
Example: Add a vNIC
This example adds a virtual NIC to a VM.
dpmvc-addvmvnic -vm_name myvm -vc_server myvcenterserver -devicetype vmxnet -network_name net1 -wake_on_lan_enabled no
Copyright © 2013 CA. All rights reserved. |
|