I think i am confusing my network with running multiple containers with the same Public IP

krewshul

New Member
Oct 18, 2019
2
0
1
42
To start off I would like to apologize If i ask a "dumb question". I am self taught with about 2 years experience with programming and network management but only about 3 months using proxmox VE.

Currently, I have a block of 5 public IP's. 200mbs down and up network speeds. Running 2 hp proliant 380 gen8 servers, with dual 6 core cpu's and 104 gb ddr3 ram each.

Servers hosts are set to their own separate local ip addresses. I have one set up running 4 containers on 4 different public ip's. That runs fine. No issues with connectivity at all.

on server 2:

Host
ipv4: 10.1.10.79/29
gateway 10.1.10.1
mac auto

lxc 101
eth0
bridge vmbr0
ipv4 static : xx.xx.xx.5/29
gateway: xx.xx.xx.9
mac: auto
no vlan tag

eth1
ipv4: 10.1.10.6/29
gateway 10.1.10.1
mac: (copied the address from eth0)
no vlan tag

lxc102
eth0
bridge vmbr0
ipv4 static : xx.xx.xx.5/29
gateway: xx.xx.xx.9
mac: (copied the address from lxc 101)
no vlan tag

eth1
ipv4: 10.1.10.6/29
gateway 10.1.10.1
mac: (copied the address from eth0)
ipv6: DHCP
no vlan tag

now as mentioned i am self taught with most of it coming from trial and error with online research for the time when the "trial" gives me an "error". I have tried many different config's But when running multiple containers with the same static ipv4 (different ip from server 1's containers) even doing the simple things like "sudo apt update" will work sometimes but most of the time not connecting at all.

so....... as the title says, i think i am confusing the network. Can anyone assist or point me in the direction of an answer?
 
But when running multiple containers with the same static ipv4
afaiu, you are trying to run multiple containers with the same ip? that can and will not work... the reason it seems to work 'sometimes' is that your network hardware sends the packets to either of the hosts, which sometimes is correct and sometimes not...
 
  • Like
Reactions: krewshul
Thank you for responding. I do appreciate that. But that leads into another question. How is that in all the vids you see a person running multiple containers and vm's on the same machine with only one ip address? And if you are unable to do so then how is that in lxd you can have it accept the settings of the host and the container would have the same ip then? I could literaly uninstall proxmox and run multiple lxd containers and all of them broadcast the same public ip. From my understanding isnt proxmox ve built to manage lxd containers?
 

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!