6.5

Table Of Contents
Adding and Modifying VMkernel Network Interfaces
VMkernel network interfaces are used primarily for management trac, which can include vMotion, IP
Storage, and other management trac on the ESXi system. You can also bind a newly created VMkernel
network interface for use by software and dependent hardware iSCSI by using the esxcli iscsi commands.
The VMkernel network interface is separate from the virtual machine network. The guest operating system
and application programs communicate with a VMkernel network interface through a commonly available
device driver or a VMware device driver optimized for the virtual environment. In either case,
communication in the guest operating system occurs as it would with a physical device. Virtual machines
can also communicate with a VMkernel network interface if both use the same virtual switch.
Each VMkernel network interface has its own MAC address and one or more IP addresses, and responds to
the standard Ethernet protocol as would a physical NIC. The VMkernel network interface is created with
TCP Segmentation Ooad (TSO) enabled.
You can manage VMkernel NICs with ESXCLI and with vicfg-vmknic.
Managing VMkernel Network Interfaces with ESXCLI
You can congure the VMkernel network interface for IPv4 or for IPv6 with ESXCLI. In contrast to vicfg-
vmknic, ESXCLI does not support enabling vMotion.
For IPv4, see Add and Congure an IPv4 VMkernel Network Interface with ESXCLI,” on page 145. For
IPv6, see Add and Congure an IPv6 VMkernel Network Interface with ESXCLI,” on page 146.
Add and Configure an IPv4 VMkernel Network Interface with ESXCLI
You can add and congure an IPv4 VMkernel NIC by using ESXCLI.
Specify one of the options listed in “Connection Options for vCLI Host Management Commands,” on
page 19 in place of <conn_options>.
Procedure
1 Add a new VMkernel network interface.
esxcli <conn_options> network ip interface add --interface-name=vmk<x> --portgroup-
name=<my_portgroup>
You can specify the MTU seing after you have added the network interface by using esxcli network
ip interface set --mtu.
2 Congure 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 --interface-name=vmk<X>
You can set the address as follows.
n
<X.X.X.X> – Static IPv4 address.
n
DHCP – Use IPv4 DHCP.
The VMkernel supports DHCP only for ESXi 4.0 and later.
When the command nishes successfully, the newly added VMkernel network interface is enabled.
Chapter 9 Managing vSphere Networking
VMware, Inc. 145