How to change IP address on Proxmox

Do you need to change the Proxmox server IP address? Here's how through the web UI and command shell.

Proxmox change IP address

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.

Important: It’s always a good idea to backup the configuration files before making changes to the server.

Change IP address of Proxmox VE server (web)

To change the TCP/IP address configuration of Proxmox, use these steps:

  1. Open Proxmox server (web).

  2. Select the server from the left navigation pane.

  3. Click on System and choose Network.

  4. Select the vmbr0 network adapter on the right side.

  5. Click the Edit button.

    Proxmox network vmbr0

  6. Confirm the new static IP address and subnet mask in the “IPv4/CIDR” setting. For example, 10.1.4.154/24.

    Proxmox change IP address from web

    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.

  7. Confirm the default gateway address in the “Gateway (IPv4)” setting.

    Quick note: Usually, this is the router IP address.

  8. 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:

  1. Sign in to Proxmox server via Shell.

  2. Type the following command to open the network configuration file and press Enter:

    nano /etc/network/interfaces
  3. Confirm the new static IP address and subnet mask in the “address” setting. For example, 10.1.4.154/24.

    Proxmox change IP commands

    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.

  4. Confirm the default gateway address in the “gateway” setting.

  5. Press “Ctrl + O,” “Enter,” and “Ctrl + X” to save the changes and exit the text editor.

  6. Type the following command to open the hosts configuration file and press Enter:

    nano /etc/hosts
  7. Change the old IP for the new IP address to avoid problems.

    Proxmox update hosts file

  8. 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.