6.0

Table Of Contents
Getting Started with vSphere Command-Line Interfaces
126 VMware, Inc.
Thecommanddisplaysthenetworkinformation,portgroup,MTU,andcurrentstateforeachvirtual
networkadapterinthesystem.
YoucanaddandconfigureanIPv6VMkernelNICwithESXCLI.
To add and configure a VMkernel Network Interface for IPv6
1Runesxcli network ip interface addtoaddanewVMkernelnetworkinterface.
esxcli <conn_options> network ip interface add --interface-name=vmk<x>
--portgroup-name=<my_portgroup>
YoucanspecifytheMTUsettingafteryouhaveaddedthenetworkinterfacebyusingesxcli network
ip interface set --mtu.
Whenthecommandfinishessuccessfully,thenewlyaddedVMkernelnetworkinterfaceisenabled.
2Runesxcli network ip interface ipv6 address add toconfiguretheinterfaceasanIPv6interface.
YoumustspecifytheIPaddressusing--ipandthename.For
thefollowingexamples,assumethat
VMSFVMK363isaportgrouptowhichyouwanttoaddaVMkernelnetworkinterface.
esxcli <conn_options> network ip interface ipv6 address add --ip=<X:X:X::/X>
--interface-name=vmk<X>
Youcansettheaddressasfollows.
<X:X:X::/X>:StaticIPv6address
--enable-dhcpv6:EnablesDHCPv6onthisinterfaceandattemptstoacquireanIPv6addressfrom
thenetwork.
--enable-router-adv:UsetheIPv6addressadvertisedbytherouter.Theaddressisaddedwhen
theroutersendsthenextrouteradvert.
TheVMkernelsupportsDHCPonlyforESXi4.0andlater.
Whenthecommandcompletessuccessfully,thenewlyaddedVMkernelnetworkinterfaceisenabled.
3ListinformationaboutallVMkernelnetworkinterfaceson
thesystem.
esxcli <conn_options> network ip interface list
Thelistcontainsthenetworkinformation,portgroup,MTU,andcurrentstateforeachVMkernel
NetworkInterfaceonthesystem.
4YoucanlaterremovetheIPv6addressanddisableIPv6.
esxcli <conn_options> network ip interface ipv6 address remove --interface-name=<VMK_NIC>
--ipv6=<ipv6_addr>
esxcli <conn_options> network ip set --ipv6-enabled=false
Managing VMkernel Network Interfaces with vicfg-vmknic
YoucanconfiguretheVMkernelnetworkinterfaceforIPv4(see“ToaddandconfigureanIPv4VMkernel
NetworkInterfacewithvicfgvmknic”onpage 126)orforIPv6(see“ToaddandconfigureanIPv6VMkernel
NetworkInterfacewithvicfgvmknic”onpage 127).Specifyoneoftheoptionslistedin“ConnectionOptions
forvCLIHostManagementCommands”onpage 18inplaceof<conn_options>.
To add and configure an IPv4 VMkernel Network Interface with vicfg-vmknic
1Runvicfg-vmknic --addtoaddaVMkernelnetworkinterface.
YoumustspecifytheIPaddressbyusing--ip,thenetmask,andthename.Forthefollowingexamples,
assumethatVMSFVMK363isaportgrouptowhichyou
wanttoaddaVMkernelnetworkinterface.
vicfg-vmknic <conn_options> --add --ip <ip_address> -n 255.255.255.0 VMSF-VMK-363
YoucanspecifytheMTUsettingwhenaddingaVMkernelnetworkinterface.Youcannotchangethat
settingatalatertime.
Whenthecommandcompletessuccessfully,thenewlyaddedVMkernelnetworkinterfaceisenabled.