cluster: Support running multiple instances on the same host

With IP_MULTICAST_LOOP they can see each other. We "just" have to make sure
they use different IP addresses and route metrics to distinguish from each
other.
This commit is contained in:
Samuel Thibault 2025-03-17 20:51:06 +01:00
parent 366faaea76
commit b2942b3c53
5 changed files with 86 additions and 22 deletions

View file

@ -348,7 +348,12 @@ should be set by a line like: set configstring \"value\" set ipaddress
`cluster_interface` (string)
: Interface for cluster packets (default: eth0)
: Interface for cluster packets (default: eth0).
An IPv4 address can also be specified, e.g. to run several l2tpns on the
same host (but beware of enabling kernel acceleration only on one instance,
to set a different `bind_portremotelns`, and to set a different
`route_metric`. It is also useful to set a different `route_protocol`
number)
`cluster_mcast_ttl` (int)