E
endium
Guest
Is it possible to have the proxmox server use dhcp instead of a static ip address? I want to be able to access the server by the fqdn, and don't care if the ip address changes. This is because I don't have control over giving a static ip address in our network.
I tried editing /etc/network/interfaces to have vmbr0 use dhcp instead of static ip. This works and I can access the admin GUI by the assigned ip address. For VMs I set the networking to bridged mode, and set eth0 also to use dhcp. This also seems to work.
What doesn't work is that I can't access the proxmox server by the fqdn. hostname -f says unknown host. I also notice that everytime i restart the server, proxmox is trying trying to add a line to /etc/hosts linking the domain to an IP.
Without any changes to the system and with a static IP it looks like this:
after changing to use dhcp, and say after 4 restarts I get this:
I tried editing /etc/network/interfaces to have vmbr0 use dhcp instead of static ip. This works and I can access the admin GUI by the assigned ip address. For VMs I set the networking to bridged mode, and set eth0 also to use dhcp. This also seems to work.
What doesn't work is that I can't access the proxmox server by the fqdn. hostname -f says unknown host. I also notice that everytime i restart the server, proxmox is trying trying to add a line to /etc/hosts linking the domain to an IP.
Without any changes to the system and with a static IP it looks like this:
Code:
127.0.0.1 localhost.localdomain localhost
[IP] [FQDN] [Hostname]
Code:
127.0.0.1 localhost.localdomain localhost
[FQDN] [Hostname]
[FQDN] [Hostname]
[FQDN] [Hostname]
[FQDN] [Hostname]