On Proxmox VE, you can change the server IP address in multiple ways, and in this guide, you will learn how. When you use Proxmox for virtualization in your home or organization, at one point or another, you may have to change the static IP configuration because of changes in the network or because you’re moving the server to a new location.
Whatever the reason might be, on Proxmox, you can change the network configuration through the web interface or directly from the server using commands.
This guide will teach you the steps to change the static IP address of a Proxmox server.
Change IP address of Proxmox VE server (web)
To change the TCP/IP address configuration of Proxmox, use these steps:
-
Open Proxmox server (web).
-
Select the server from the left navigation pane.
-
Click on System and choose Network.
-
Select the vmbr0 network adapter on the right side.
-
Click the Edit button.
-
Confirm the new static IP address and subnet mask in the “IPv4/CIDR” setting. For example, 10.1.4.154/24.
In the command, change 10.1.4.154 for the new IP address and “/24” for the subnet mask address that corresponds to your network. The web interface uses the network bit annotation, meaning “24” represents the “255.255.255.0” subnet mask address.
-
Confirm the default gateway address in the “Gateway (IPv4)” setting.
Quick note: Usually, this is the router IP address.
-
Click the OK button.
Once you complete the steps, the new network configuration will apply, and you will need to connect to the web interface using the new IP address.
Change IP address of Proxmox VE server (command)
To change the static Proxmox IP configuration through commands, it’s a good idea to connect directly to the server and then use these steps:
-
Sign in to Proxmox server via Shell.
-
Type the following command to open the network configuration file and press Enter:
nano /etc/network/interfaces
-
Confirm the new static IP address and subnet mask in the “address” setting. For example, 10.1.4.154/24.
In the command, change 10.1.4.154 for the new IP address and “/24” for the subnet mask address that corresponds to your network. The system uses the network bit annotation, meaning “24” represents the “255.255.255.0” subnet mask address.
-
Confirm the default gateway address in the “gateway” setting.
-
Press “Ctrl + O,” “Enter,” and “Ctrl + X” to save the changes and exit the text editor.
-
Type the following command to open the hosts configuration file and press Enter:
nano /etc/hosts
-
Change the old IP for the new IP address to avoid problems.
-
Press “Ctrl + O,” “Enter,” and “Ctrl + X” to save the changes and exit the text editor.
After you complete the steps, you can use the new TCP/IP configuration to access the Proxmox server.
When using these instructions, you are only changing the network configuration for the server. You are not changing the IP of the virtual machines. If you need to change the address of a virtual machine, you have to perform the task in the host.