Network change, DHCP?

cycling-harpist

New Member
Mar 4, 2024
5
0
1
Hi all!

I wanted to see if PVE would be useful to me so I've installed it behind a router which provided an ip address by dhcp. Satisfied with the setup I physically moved the machine to a different router. Unfortunately the machine's network wasn't configured properly.

When installing PVE an ip was obtained using dhcp, but PVE configured itself to use that ip statically. I would have expected PVE to keep the dynamic ip assignment. Is that expected? Or maybe was it because I screwed up the install process (f.e. by manually assigning an address during setup)?

I plan to put the PVE machine behind my ISP modem which assigns an IP using dhcp (I think the modem does not route so whatever gets connected to it gets a _public_ IP provided by my ISP). This would mean that the PVE machine should receive its IP from dhcp... Does PVE allows this?

Thanks!
 
Is that expected?
This is expected. As Proxmox is a server system and heavily relies on its IPs especially in a cluster setup the initially obtained IP address is configured statically by the install process.
You can manually install isc-dhcp-client and the change /etc/network/interfaces to create a DHCP interface, but this is not recommended.
 
Ok thanks, makes sense! I think I'll add a router between my modem and pve then. I'll be able to assign it a static ip.