Configured Public IP Stops Working After Some Time

slykar

New Member
Oct 2, 2020
1
0
1
33
Hello,

I'm struggling with assigning a public IP to a container.
I have 4 IP addresses assigned to my host. One is used by the host itself on vmbr0. I can successfully add other IPs to the host if I create additional vmbrX.

The container belongs to a private network via vmbr1. Assigning a public IP bridged via vmbr0 to a container does not seem to work unless I do the following.
  1. I create a vmbr3 with a next public IP assigned.
  2. I start a ping on the IP from my local PC - ping works and keeps working in the terminal
  3. I now configure my container to use the same new IP address as vmbr3, but I bridge the interface to vmbr0
  4. I remove vmbr3 from the host
  5. Now I can ping my container/connect via SSH
  6. About 1 minute passes and the connection stops working - Destination Host Unreachable
I was re-creating a container few times with the same IP configuration and everything was working fine. At some point it just stopped.

I was contacting my provider to double check if everything is fine on their side, but everything is ok - which could be confirmed by attaching the public IPs to the host directly.

I have no idea why something like this could happen. I would really appreciate any hints.