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.
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.
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.
- I create a vmbr3 with a next public IP assigned.
- I start a ping on the IP from my local PC - ping works and keeps working in the terminal
- I now configure my container to use the same new IP address as vmbr3, but I bridge the interface to vmbr0
- I remove vmbr3 from the host
- Now I can ping my container/connect via SSH
- About 1 minute passes and the connection stops working - Destination Host Unreachable
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.