Learn how to configure the network in Proxmox VE.
On an ADVANCE Gen 3 server, it is not possible to operate Additional IPs in bridged mode (via virtual MACs). Configuring Additional IPs via the vRack is necessary.
Requirements
- a public block of IP addresses in your account, with a minimum of four addresses, attached to the vRack
- your chosen private IP address range
- a vRack-compatible server
- a vRack service activated in your account
- access to the OVHcloud Control Panel
Instructions
Gather information
From the OVHcloud Control Panel:
- Select
Bare Metal Cloud
from the top navigation bar. - On the left-hand menu, select
Dedicated servers
and choose your server. - Click the
Network interfaces
tab. - Locate the Private interface and take note of the MAC address.
SSH into your dedicated server and run the following command to list all interfaces:
Example result:
Reserved and usable IP addresses
In an IP block, the first IP address is the network address. The second to last is the network gateway and the last is the network broadcast.
For example, the IP block XXX.XXX.78.244/30 breaks down like this:
Variable | Explanation | Example |
---|---|---|
<network_address> |
First address in your IP block. | XXX.XXX.78.244/30 |
<usable_ip> |
Second address in your IP block. *If you have a larger block of IPs, all addresses that fall between the Network Address and the Network Gateway would be usable. |
XXX.XXX.78.245 |
<network_gateway> |
Second to last address in your IP block. |
XXX.XXX.78.246 |
<network_broadcast> |
Last address in your IP block. | XXX.XXX.78.247 |
<public_interface_id> |
Name of the physical interface matching your public MAC address. |
enp8s0f0np0 |
<public_virtual_interface_id> |
Name of the public, virtual interface. |
vmbr0 |
<private_interface_ID> |
Name of the interface matching your private MAC address. | enp8s0f1np1 |
<private_VIRTUAL_interface_id> |
Name (of your choice) of the new private, virtual interface. | vmbr1 |
Configure an Additional IP block on a vRack
This setup allows you to configure IPs of the same block on multiple servers, provided that these servers are all in the same vRack as the IP block. The IP block must have at least two usable IPs or more for this to be possible.
In your OVHcloud Control Panel, go to the Bare Metal Cloud
section and click on Network
. Next, open the vRack
menu.
Select your vRack from the list to display the list of eligible services. Click the IP block you wish to add to the vRack and click on the Add
button.
Configure the routing table
Open the /etc/iproute2/rt_tables
configuration file.
Add the last line of the following example file to yours:
Configure the private virtual interface
Edit the network configuration file /etc/network/interfaces
based on the following template:
#Public Interface
section is an example but must not be changed. The goal here is to create a private, second interface.
Configuration example
File contents /etc/network/interfaces
:
Restart and verification
Restart the network services:
When creating the VM in Proxmox (e.g. vmbr1
), select the network interface ID under the Network tab. From this point, you will be on the new VM's interface block that you configured above, which will be using the Additional IP configured in vRack.
Verify that the private interface has been successfully configured:
Example output:
Configuring the VM network on Proxmox
Log in to Proxmox using the credentials sent to you via email.
Select local (ns xxxxx)
, then ISO Images
, and then Download from URL
.
Find, copy, and paste the URL for the ISO image you want to upload to the Proxmox library.
Select Query URL
and then Download
.
You will see the progress of your download.
Create a new VM and, in the Network
tab, use the private interface you configured above by clicking the Bridge
dropdown menu and selecting that interface (e.g. "vmbr1".)
Click Next
to continue.
Verify the configuration settings for your VM and click Finish
to create it.
Boot the VM and go through the OS install configuration in Proxmox while ensuring that you use the private interface networking information that was configured in the previous steps.
Configuration example of a client VM on Ubuntu
Create a vrack.yaml
file under /etc/netplan/vrack.yaml
.
Content of the file:
For the netplan configuration changes to take effect, you must reboot the VM or run this command:
The configuration file for your Additional IP addresses is located in /etc/netplan/
. In this example, it is called "50-cloud-init.yaml". Before making changes, verify the actual file name in this folder. Each Additional IP address will need its own line within the file.
Step 1: Disable automatic network configuration
Open the following file path with a text editor:
Enter the following line, then save and exit the editor.
Creating this configuration file will prevent changes to your network configuration from being made automatically.
Step 2: Apply the new network configuration
You can test your configuration using this command:
If it is correct, apply it using the following command:
Repeat this procedure for each Additional IP address.
Go further
For more information and tutorials, please see our other Dedicated Servers support guides or explore the guides for other OVHcloud products and services.