AnyNode SBC Cluster

How to setup a redundant SBC Envionment with AnyNode SBC?

Posted by Henning on 2nd Jan 2021


I wanted to setup a redundant AnyNode Setup for testing purposes. I was thinking what would be the easiest way to achive this setup. I came up with two ideas:

  1. Setup a Loadbalancer between the PBX and the SBCs
  2. Use virtual IPs

To my delight AnyNode supports virtual IPs and Failover, so it was pretty easy to set everything up.

The Setup

my setup

The setup consinsts of two AnyNode SBCs running in a Active/Passive Cluster and a 3CX PBX with attached IP Phones.

What is a virtual IP?

A virtual IP is not fixed assigned to one Interface. It can be assigned to several Interfaces - but not at the same time. In this case, always the active SBC has assigned the virtual IP Address. That means, that only this one SBC is reachalbe using this IP. But: if the active SBC becomes inactive (Reboot, power loss, connection issues...) the second SBC will decide, that he is now active and assign the virtual IP to himself. So the other SBC becomes active and takes over the job.

And what about the configuration?

AnyNode allows you to have an automatic replication of the configuration between both SBCs. So they are always up to date with your current configuration. Note: You can only change the configuration on the master SBC!

Slave Configuration

Let's start!

Slave Setup

First connect to your slave system and let's create a connector to replicate the configuration!

Slave Configuration Slave Configuration

Choose the IP Address that should be used for replication: Slave Configuration

Enter the IP Address of the master system Slave Configuration

Enter a Name for this Connector Slave Configuration

Make sure to create the access token! Slave Configuration Slave Configuration Slave Configuration

Don't forget to export the configuration and save it! Slave Configuration

Once you have finished the setup on the slave system, let's move to the master

Master Setup

Go to the Remote Backend Instances and import the access file you just exported.

Slave Configuration

Slave Configuration

Now you have successfully connected your master and slave SBC. You can switch between both in the top right corner:

Slave Configuration

Note: the replica will always be in read-only mode!

Virtual IP Setup

Now that we have managed to replicate our configurtion, we can move on to the virual IP.

On both systems (master and slave) perform these steps!

Go to Network Interfaces and configure your network interface. Allow AnyNode to configure the interface and provide the condition as well as the IP Address:

Slave Configuration

That's it! Your done. From now on, the slave system will take over once the master is down.