[Solved] Add failover IP to host?

ProxRocks

New Member
Aug 2, 2013
5
0
1
Hi,
Despite some searchs on the net, I cannot find how to add a failover IP to my proxmox host. I would like my host to have a second IP so that I can send email via a distinct and dedicated interface.

That host is running Debian (9.9), in Online datacenter (would be the same with OVH from what I've read) and I know how to add a failover IP to a LXC CT. My /etc/network/interfaces looks like this for the host part:

iface eth0 inet manual

auto vmbr0
iface vmbr0 inet static
address a.b.c.d
netmask 255.255.255.0
gateway a.b.c.1
bridge-ports eth0
bridge-stp off
bridge-fd 0
comments6 accept_ra 1​

How should I declare the failover IP (web ui, in a conf file, by script...)? What else should I do (routing, iptables, etc.) to be able to have specific trafic going out that extra interface?
Thank you for your help!
 
I answer myself... To add an failover IP at the host level is done the usual way (see below). The only blocking issue I had was that I had assigned a virtual MAC address to that failover IP - this is required for a failover IP assigned to a container, but is bocking and must be removed for a failover IP assigned to the host. Once I removed the virtual MAC, the IP worked fine.

Here is my config:

iface eth0 inet manual

auto vmbr0
iface vmbr0 inet static
address a.b.c.d
netmask 255.255.255.0
gateway a.b.c.1
bridge-ports eth0
bridge-stp off
bridge-fd 0
comments6 accept_ra 1

auto eth0:0
iface eth0:0 inet static
address w.x.y.z
netmask 255.255.255.255
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!