IPv6 for the VMkernel interface is now automatically enabled by default for the latest release of ESXi 5.1 and you may have also noticed the additional IP Address in DCUI after the host boots up.
IPv6 support has been around for awhile now and you can enable IPv6 by using the old vSphere C# Client or the new vSphere Web Client. If you enable or disable IPv6, you will need to perform a system reboot for the changes to go into effect. You also have the ability to enable/disable it via the DCUI, which also has been around for awhile as well.
UPDATE: 07/20/15 - For ESXi 6.0, the VMkernel module is name is now tcpip4 instead of tcpip3.
There is one very important thing to note if you do enable/disable IPv6 on the DCUI, after you made your changes and you wish to apply, there is a very important confirmation box that is displayed.
Carefully read the last sentence which is underline in red "In case IPv6 has been enabled or disabled this will restart your host". If you are not careful in reading the confirmation screen, you may hit yes and your host will issue a reboot. If you are going to use the DCUI to enable or disable IPv6, make sure you do not have any running VMs on your host and you should already have your host maintenance mode when making configuration changes to your host.
In addition to the two methods listed above (vSphere Web Client/C# CLient and DCUI) you can easily enable/disable IPv6 using ESXCLI (my preferred method) and restart the ESXi host when you get a chance.
To view whether IPv6 is currently enabled, run the following ESXCLI command (ESXi 5.5 Update 1 the VMkernel module is now called tcpip4):
esxcli system module parameters list -m tcpip3
As you can see from the screenshot above, ipv6 property is set to 1 which means it is enabled.
To disable IPv6, you just need to set the property to 0, run the following ESXCLI command:
esxcli system module parameters set -m tcpip3 -p ipv6=0
We can now reconfirm by re-running our list operation to ensure the changes were made successfully. All that is left is to perform a system reboot, you can either type in "reboot" or use the new ESXCLI 5.1 command:
esxcli system shutdown reboot -d 60 -r "making IPv6 config changes"
Note: You can run the ESXCLI command locally on the ESXi Shell or you can run the same command remotely by specifying additional connection options & proxy through vCenter Server if you wish. Take a look here for additional connection options for ESXCLI.
thenexus6 says
And for host profiles (for stateless auto-deployed hosts) you must make sure that everything related to ipv6 in the vnic IP address settings is set to "User must explicitly choose the policy option". Otherwise you'll get GUI complaining about ipv6 must be enabled.
Anonymous says
Is this just for the host ipv6 connection? Does this have any effect on the VMs using ipv6?
William says
@Anonymous, this is only for VMkernel IPv6 as noted in the article, it has nothing to do with VM traffic
JC says
Does this command have the same effect?
esxcli network ip set --ipv6-enabled=false
William says
@JC,
Yes, that would work and it is probably setting the same kernel parameter. Good catch!
Dave says
Hey,
Is it possible this module was changed in 5.5 U1? I run it and get the following:
/etc/ssh # esxcli system module parameters set -m tcpip3 -p ipv6=0
unknown module 'tcpip3'
Thanks 🙂
david12king2 says
Hm, apparently it's tcpip4 now.
/etc/ssh # esxcli system module parameters set -m tcpip4 -p ipv6=0
/etc/ssh # esxcli system module parameters list -m tcpip4
Name Type Value Description
------------------- ---- ----- --------------------------------
ipportIscsiReserved int # of provisioned H/W iSCSI ports
ipv6 int 0 Enable/Disable IPv6
/etc/ssh #
William Lam says
I was about to reply back 🙂 I'll update the article in case others have questions
shaneschnell says
Hi William,
I am trying to run this through powercli. I've done the following:
$esxcli = Get-EsxCli -VMhost Server1
$esxcli.network.ip.set($false)
However each time it returns "true". I have the host in maintenance mode... any ideas why this won't work?
Thanks again for this excellent blog!
Grzeg says
Add one more line and it will be okay 🙂
Restart-VMHost
Adeel says
if i disable IPv6 on ESXi 5.5 Update 1 any impact or enable IPv6 on ESXi 5.5 Update 1 any benefit? I am already using IPv4.
William Lam says
The only benefit is if you're using IPv6 🙂 else it really does not matter
jcypher says
We should be enabling IPV6 everywhere at this point.
fbifido (@fbifido) says
How does one disable ipv4 ??
esxcli network ip set --ipv4-enabled=false