[SOLVED] Proxmox change IP address

sandtech

New Member
Apr 13, 2024
7
3
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: rcpa0 and 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:
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: BISI_SA and Dave K
Ei,

você tem que atualizar ambos, /etc/network/interfacese /etc/hosts.
Ei,
aqui deu certo!
usando os comandos

vi /etc/network/interfaces após alteração, tem que alterar nesse também /etc/hosts
tecla (a) de edição de campo
teclas :wq para salvar ou as tecla :ZZ escreve o que editou e salvou
após alteração aplicar o comando: systemctl restart networking
 
...
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?

actually, potentially 4 files:
Code:
root@xxxx:~# vi /etc/network/interfaces
root@xxxx:~# vi /etc/hosts
root@xxxx:~# vi /etc/issue
root@xxxx:~# vi /etc/resolv.conf
 
  • Like
Reactions: joshu111
Hello guys,
This discussion seems (potentially) similar to an issue that I have. I'm wondering if anyone has any tips, as I was unable to find any relevant information after a whole afternoon yesterday.
I was using Proxmox on a Dell miniPC and I got a new (barebones) miniPC from minisForum. I was hoping that simply moving the storage and ram and connecting it to the LAN would resolve itself, but it doesn't seem like it is the case.
I've done the setup for this Proxmox instance like +2 years ago (i'm on version 6.8.x something, I think).
The issue I'm having is I cannot get an IP in my DHCP client for this machine at all.
I'm using a mikrotik router and watching live any ARP changes. Have tried many things from:
- clearing the ARP cache of the previous machine on the router,
- adding the mac address of the eth interface myself in the router
- disabling my firewall on the router
- on the proxmox side, have tried flushing any ip configuration and requesting a new ip
- and many other
I was wondering if anyone did this before.
I think that (possibly) a reinstall of Proxmox from scratch would probably fix this, but i have a lot of stuff pre-configured (would take me weeks to a month to restore).
Does anyone have any advice?
Thank you in advance!

Edit: @_gabriel I'm sorry. will do that! I have already looked through the forums and believe me that I don't like to ask, I'd rather read about someone experiencing the same and figuring out a solution, but I wasn't able to find anything useful. The IP doesn't need adapting, it can stay the same. Maybe I've expressed myself badly. I'll try better in a new thread.
 
Last edited: