Multiple containers with the same IP


New Member
May 30, 2019
I'm working on setting up an anycasted service with the containers hosted on Proxmox. The current plan is to give each container a separate IP address in the same subnet as the router via adding a regular network device in Proxmox. Within each container they'll be configured to add the anycasted IP address to a loopback interface. That won't be a network device under the network tab in Proxmox, just entirely managed and assigned within the container itself. Is this safe to do if the containers get migrated to the same host during e.g. some maintenance or failover? Here's how I want to configure it.


CT1: eth0

CT2: eth0

And just run ExaBGP within the container to advertise or withdraw the route from the router as needed. I'm assuming that each container being in their own network namespace ought to make this work fine, but the duplicate ip addresses in the same kernel just seems weird to me. Is this a sane plan?
PVE does not care if you f**k with the network stack and assign the same IP multiple times.

I cannot guest what you're trying to achieve by setting such a strange loopback address. Normally, rfc6890 states that loopback has to be
Are you trying to create another loopback and disable ARP replies on it on each respective CT so you can have direct server return?


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!