WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud Foundation
  • VKS
  • Homelab
    • Resources
    • Nested Virtualization
  • VMware Nostalgia
  • Apple
You are here: Home / ESXi / Disabling IPv6 via Command-Line For ESXi 5.1 (Without Automatic Host Reboot)

Disabling IPv6 via Command-Line For ESXi 5.1 (Without Automatic Host Reboot)

09.14.2012 by William Lam // 16 Comments

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.

More from my site

  • w00t! VMware Tools for Nested ESXi!
  • How to clear the ARP cache in ESXi prior to vSphere 5.5
  • Running ESXi 5.0 & 5.1 on 2012 Mac Mini 6,2
  • Nested Virtualization Resources
  • 2gbsparse Disk Format No Longer Working On ESXi 5.1

Categories // ESXi, vSphere 5.5, vSphere 6.0 Tags // cli, esxcli, ESXi 5.0, ESXi 5.1, ipv6, vSphere 5.0, vSphere 5.1

Comments

  1. *protectedthenexus6 says

    09/16/2012 at 3:05 am

    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.

    Reply
  2. *protectedAnonymous says

    09/19/2012 at 6:43 pm

    Is this just for the host ipv6 connection? Does this have any effect on the VMs using ipv6?

    Reply
    • *protectedWilliam says

      09/21/2012 at 12:36 am

      @Anonymous, this is only for VMkernel IPv6 as noted in the article, it has nothing to do with VM traffic

      Reply
  3. *protectedJC says

    01/01/2013 at 5:17 pm

    Does this command have the same effect?

    esxcli network ip set --ipv6-enabled=false

    Reply
    • *protectedWilliam says

      01/01/2013 at 6:22 pm

      @JC,

      Yes, that would work and it is probably setting the same kernel parameter. Good catch!

      Reply
  4. *protectedDave says

    03/22/2014 at 1:34 am

    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 🙂

    Reply
    • *protecteddavid12king2 says

      03/22/2014 at 1:39 am

      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 #

      Reply
      • William Lam says

        03/22/2014 at 1:47 am

        I was about to reply back 🙂 I'll update the article in case others have questions

        Reply
  5. *protectedshaneschnell says

    08/05/2014 at 11:44 pm

    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!

    Reply
    • *protectedGrzeg says

      02/15/2017 at 5:24 am

      Add one more line and it will be okay 🙂
      Restart-VMHost

      Reply
  6. *protectedAdeel says

    09/09/2014 at 12:57 pm

    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.

    Reply
    • William Lam says

      09/09/2014 at 1:18 pm

      The only benefit is if you're using IPv6 🙂 else it really does not matter

      Reply
  7. *protectedjcypher says

    08/05/2016 at 1:37 pm

    We should be enabling IPV6 everywhere at this point.

    Reply
  8. *protectedfbifido (@fbifido) says

    06/21/2022 at 6:58 am

    How does one disable ipv4 ??

    esxcli network ip set --ipv4-enabled=false

    Reply

Trackbacks

  1. Disabling IPv6 on AutoDeployed Reference Host - Justin's IT Blog | Justin's IT Blog says:
    07/24/2015 at 2:51 am

    […] any articles on the topic so I did a more general search for how to turn off IPv6. I can across William Lam's Article here. And I took that (along with the comments) and tried the following. Note: do all 6 steps without […]

    Reply
  2. Disabling IPv6 via Command-Line For ESXi – VMDK 自修室 says:
    11/28/2017 at 7:58 pm

    […] https://www.williamlam.com/2012/09/disabling-ipv6-via-command-line-for.html […]

    Reply

Thanks for the comment!Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search

Thank Author

Author

William is Distinguished Platform Engineering Architect in the VMware Cloud Foundation (VCF) Division at Broadcom. His primary focus is helping customers and partners build, run and operate a modern Private Cloud using the VMware Cloud Foundation (VCF) platform.

Connect

  • Bluesky
  • Email
  • GitHub
  • LinkedIn
  • Mastodon
  • Reddit
  • RSS
  • Twitter
  • Vimeo

Recent

  • Programmatically accessing the Broadcom Compatibility Guide (BCG) 05/06/2025
  • Quick Tip - Validating Broadcom Download Token  05/01/2025
  • Supported chipsets for the USB Network Native Driver for ESXi Fling 04/23/2025
  • vCenter Identity Federation with Authelia 04/16/2025
  • vCenter Server Identity Federation with Kanidm 04/10/2025

Advertisment

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Copyright WilliamLam.com © 2025