Hopefully you will never need the information in this post. Lately, a wrong gateway was entered during the initial setup of a Nutanix cluster. Because the cluster was configured connected to a standalone switch, the typo was found when the cluster was already connected to the customers production network and was unreachable…
Luckily you can change the gateway with no need to bring down any component of the Nutanix cluster… That saves a lot of time… (The commands are not really Nutanix specific. I suppose the commands will work on all Linux like platforms, also.)
Just enter the following commands on the Controller VMs and the AHV nodes. Please don’t forget to make the necessary changes to the ifcfg-eth0 and the ifcfg-br0. Otherwise the changes will not be persistent after a reboot.
#Controller VM
sudo route add default gw xx.xx.xx.250
sudo route delete default gw xx.xx.xx.50
sudo vi /etc/sysconfig/network-scripts/ifcfg-eth0
#Node
sudo route add default gw xx.xx.xx.250
sudo route delete default gw xx.xx.xx.50
sudo vi /etc/sysconfig/network-scripts/ifcfg-br0
Leave a Reply