[SOLVED] Proxmox change IP address

sandtech

New Member
Apr 13, 2024
7
2
3
Hi,

I recently attempted to change the IP address of my Proxmox server (192.168.3.12---> 192.168.10.54) and updated it in the /etc/network/interfaces file but to no success. Surprisingly, reverting to the old IP (192.168.3.12) while connected to the (192.168.10.XX) network resolved the issue.

Any insights into what might be causing this?
 
For other people who might find this thread, this applies only for single hosts. Once you have your host as part of a cluster, it gets more complicated: Corosync and maybe Ceph if you use it.
 
You might also need to change your DNS accordingly by editing the /etc/resolv.conf in case you previously pointed it at your router and not at a public DNS server.
 
  • Like
Reactions: sandtech
When setting up Proxmox (for the first time), it asked about my IP address which I provided (e.g. ..1.15). Seems that the setup process creates a static IP address for the machine. As it is now, I cannot see my Proxmox server in my list of network devices on my dhcp server.

Can Proxmox be setup with a dynamic IP address which can be reserved on my DHCP server rather than setting up a static.
 
Last edited:
Can Proxmox be setup with a dynamic IP address which can be reserved on my DHCP server rather than setting up a static.
no, it get dhcp only during setup to help, but only static ip is recommended and supported.
 
  • Like
Reactions: Dave K
no, it get dhcp only during setup to help, but only static ip is recommended and supported.
Thank you, Gabriel. So if I need to change my IP address or move the machine into a different subnet, is there documentation for doing this?

I'm guessing a wipe and install, but if I wanted to save/backup installation and/or VM details, is that documented anywhere?

Edit:
Realized I could adjust the IP by editing the two files listed above (e.g. interface and hosts). But the backup of the Proxmox machine details or VM machine details would still be needed if this is documented somewhere?
 
Last edited:
But the backup of the Proxmox machine details or VM machine details would still be needed if this is documented somewhere?
Yes, you would still need to update the network configs of each VM and LXC. And in addition to the /etc/network/interfaces and /etc/hosts you also need to update your DNS server in /etc/resolv.conf.
 
  • Like
Reactions: Dave K

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!