VMware Cloud Community
afalk5
Contributor
Contributor

Can't disable IPv6 in post install of ESXi 6.5 using PXE boot

I am installing ESXi 6.5U1
using PXE, and the process works fine except when I attempt to disable IPv6 as part of the post install script.
Here is the syntax that I am using in the ks.cfg file:

# Disable IPv6 and reboot

%post --interpreter=busybox --ignorefailure=true

esxcli system module parameters set -m tcpip4 -p ipv6=0

esxcli network ip set --ipv6-enabled=false

esxcli system shutdown reboot

The installation stops with an [Error 256] message but you
can continue through it and complete the install.  IPv6 must then be disabled manually via the
console.  Can anyone tell me what is wrong with my syntax?

0 Kudos
1 Reply
admin
Immortal
Immortal

you can disable the ipv6 fro the command line

1.ssh to host on which you want to disable the ipv6

2. Use this command to disable the IPv6   esxcli system module parameters set -m tcpip4 -p ipv6=0

3. Reboot the host

Please let me know if it helps you

you can also disable using this command:- esxcli network ip set --ipv6-enabled=false

it also needs a reboot to the ESXi host.

Regards,

Randhir

0 Kudos