Configure the interface
as an IPv4 interface.
You must specify the
IP address by using
--ip, the netmask, and the name. For the following
examples, assume that VMSF-VMK-363 is a port group to which you want to add a
VMkernel network interface.
esxcli <conn_options> network ip interface ipv4 set --ipv4=<ip_address> --netmask=255.255.255.0 --type=<value> --interface-name=vmk<X>
You can set the
address as follows.
■
|
--ipv4=<X.X.X.X>
--netmask=<X.X.X.X> --type=static – Static IPv4 address.
|
■
|
--type=dhcp – Use
IPv4 DHCP.
|
The VMkernel supports
DHCP only for
ESXi 4.0 and
later.
When the
command finishes successfully, the newly added VMkernel network interface is
enabled.
|