Learn how to configure the network in Proxmox VE.
On the High Grade & SCALE ranges, it is not possible to operate additional IPs in bridged mode (via virtual MACs). It is therefore necessary to configure additional IPs in routed mode or via the vRack.
Requirements
- an OVHcloud dedicated server
- access to the OVHcloud Manager
- an Additional IP
Instructions
Additional IP in routed mode on public network interfaces
Target configuration schema
Explanations
You need to:
- create an aggregate
- create a bridge
- allow forwarding and add routes.
Configure the hypervisor
The entire configuration is done in the /etc/network/interfaces
file:
At this point, restart the network services or restart the server.
Configuration example of a client VM on Debian
File contents /etc/network/interfaces
:
Test and validation
Now, your VMs should be able to reach a public service over the Internet. In addition, your VMs can also be reached directly over the internet through the Additional IP. The bandwidth available corresponds to the bandwidth available on the Public interfaces of your server and will not impact the private interfaces used for the vRack. This bandwidth is shared with other VMs on the same host that are using Additional IPs and the Proxmox host for public access.
To check your public IP, from the VM:
Additional IP via vRack
This configuration is more flexible, you don't have to associate an Additional IP to a server but rather to a vRack. This means that if a VM wants to use an Additional IP, it can claim it directly without any additional configuration and independently of the host it is hosted on.
Requirements
- a public block of IP addresses in your account, with a minimum of four addresses, pointed to the vRack
- your chosen private IP address range
- a vRack-compatible server
- a vRack service activated in your account
- access to the OVHcloud Manager
Target configuration schema
Explanations
You need to:
- create an aggregate
- create a bridge connected to the aggregate
First, add your public block of IP addresses to the vRack. To do so, go to the Bare Metal Cloud
section of your OVHcloud Control Panel and open the vRack
menu.
Select your vRack from the list to display the list of eligible services. Click on the IP block you want to add to the vRack and then click the Add
button.
Configure a usable IP address
For vRack, the first, penultimate, and last addresses in a given IP block are always reserved for the network address, network gateway, and network broadcast respectively. This means that the first usable address is the second address in the block, as shown below:
To configure the first usable IP address, you must edit the network configuration file as shown below. In this example, we use a subnet mask of 255.255.255.240.
Configure the hypervisor
The entire configuration is done in the /etc/network/interfaces
file:
What matters here is the bond1
and vmbr1
configuration:
At this point, restart the network services or restart the server.
Configuration example of a client VM on Debian
File contents /etc/network/interfaces
:
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.