In the process of redoing my network I ran in to a problem where my Proxmox server wasn't getting an updated IP from the new router. Turn out this was happening because during the initial setup when you type in the IP for Proxmox to use, that's the one you're stuck with.
Previously I was using a 192.168.1.0/24
subnet, but now I need to get my Proxmox on something like 192.168.3.0/24
and since I can't access the old subnet it's not possible to SSH in to the Proxmox server and change it.
Solution:
- Connect a keyboard/monitor to the device hosting the Proxmox node and login as
root
- Edit the interfaces file:
nano /etc/network/interfaces
- Change the old IP address to whatever new one you want to use
- Save and exit:
Ctrl + o
,Ctrl + x
- Edit the hosts file:
nano /etc/hosts
- Change the old IP address to the same new one
- Save and exit:
Ctrl + o
,Ctrl + x
- Reload the network interfaces file:
ifreload -a
- Shutdown the device:
shutdown
You can also reboot the system in the last step, but I had to move my server back to the rack in another part of the house.
Reference: proxmox support forum