Configuring network settings for Proxmox installs
We configure servers at our HQ and then need to send them out to clients sites.
We set them to DHCP so that they will pickup an IP once it gets to the client's network as their IP addressing configuration is most likely different than ours.
We are running into challenges changing them back to static when they arrive at a clients site.
To get it to DHCP we are going into /etc/network/interfaces
Is this the best way to set it to DHCP?
Then, once it get's to the clients site, what is the best way to get it to a static IP (including the IP address that shows up on the login screen).
Please be a bit verbose, I'm still fairly new to ProxMox and the Linux world.
Take a look at the network configuration section of PVE Docs.
You can either make changes via the Web GUI or modify
/etc/network/interfacesfile directly. They do prefer users to use the Web GUI because when you modify the networking configuration from the GUI it will temporary creates a
/etc/network/interfaces.newfile to help you double check your new setup before you reboot to apply the new changes.
Setting up DHCP Linux bridge will require you to modify the interfaces file directly.
BE WARNED, I have not confirm if this works correctly for the DHCP setup.
DHCP setup with Linux bridge
auto lo iface lo inet loopback iface eno1 inet dhcp auto vmbr0 iface vmbr0 inet dhcp bridge_ports eno1 bridge_stp off bridge_fd 0
And with default static Linux bridge setup you can do that either by GUI or directly.
Static setup with Linux bridge
auto lo iface lo inet loopback iface eno1 inet manual auto vmbr0 iface vmbr0 inet static address 192.168.1.93 netmask 255.255.255.0 gateway 192.168.1.1 bridge_ports eno1 bridge_stp off bridge_fd 0
Also you will need to make sure
/etc/resolv.confis configured correctly, either by using GUI or directly.
search example.com nameserver 192.168.1.1 nameserver 126.96.36.199 nameserver 188.8.131.52
Is it the etc/hosts file that determines what is shown on the login screen as what the IP address of the server is?