Virtual IP between 2 containers in LXD cluster with ubuntu fan network?

Hi everyone,

I have LXD cluster with ubuntu fan network. I’m using keepalived to move the VIrtual IP.

container1 IP: 240.58.0.93
container2 IP: 240.56.0.155

e.g. Virtual IP 240.58.77.77
WIll be pingable only if is on container1.
eg. Virtual IP 240.56.77.77
WIll be pingable only if is on container2.

It seems it works on netmask /16. How to do it to work that IP for the entire cluster… netmast /8 ?

e.g. Virtual IP 240.77.77.77 to be pingable when is on container1 or container2.

Basically, you can’t.

The way the FAN works is that it encodes part of the host’s address in the container’s address. In this case, you have one container on a host which has an IP ending in 58 and another on a host with an IP ending in 56.

Thank you.