You have to change the IP in up to three files, dependence on your setup.
/etc/network/interfaces
/etc/hosts
If the server is in a cluster:
/etc/pve/corosync.conf (only on one node necessary)
After you change them on both nodes, reboot both nodes.
"Editing the corosync.conf file is not always very straightforward. There are two on each cluster node, one in /etc/pve/corosync.conf and the other in /etc/corosync/corosync.conf. Editing the one in our cluster file system will propagate the changes to the local one, but not vice versa."
cp /etc/pve/corosync.conf /etc/pve/corosync.conf.new
cp /etc/pve/corosync.conf /etc/pve/corosync.conf.bak
make the changes in /etc/pve/corosync.conf.new and
mv /etc/pve/corosync.conf.new /etc/pve/corosync.conf
You may check with the commands
systemctl status corosync
journalctl -b -u corosync
If the change could be applied automatically. If not you may have to restart the corosync service via:
systemctl restart corosync
References:
https://forum.proxmox.com/threads/cha...
https://tweenpath.net/change-cluster-...
Watch video 302 Proxmox - Changing the IP Address of the server (not in a cluster) online without registration, duration hours minute second in high quality. This video was added by user Stoyan Cheresharov 06 September 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 12,269 once and liked it 55 people.