Linux 3CX failover / local IP change

Status
Not open for further replies.

Chrizille

Bronze Partner
Basic Certified
Joined
Aug 5, 2021
Messages
2
Reaction score
0
Hi team,

I am trying to change the IP address on the passive 3CX instance to the Primary.
Currently I have a working scripts that:
ssh to active, shut down services and shutdown machine
change secondary IP address to active IP in etc/network/interfaces
Reboot.
Once this is done the passive system is active and working, however I still get the "Error: IP Address Mismatch"
I can fix this by clicking it in the GUI and hitting "OK".
I however want to automate this process within 3CX instance. Anyone done this?
1629879149453.png
 
I'm afraid that you cannot automate this and would have to go into the Management Console's Network settings to apply the changes.

Why are you switching the IP address though? Is it to just keep local devices connected? I would recommend looking into more conventional methods such as using a local DNS instead.

You would of course have to provision local devices to use the FQDN instead of the IP and then use the local DNS to point the FQDN to the appropriate IP. You could then potentially use scripting to update the DNS entry upon a failover event.
 
HI ChrisC_3CX,

Thanks for your response.

I'm switching the IP for the failover.
The issue with trying to use the DNS method is that you'd have to install openSSH on the windows server DNS and allow the linux 3CX access to that.
It also takes a long time for the phones to re-register using that method.
With the IP change, the phone swap instantly and internal calling works perfectly without downtime.
I'm trying to avoid messing with the DNS entries due to security and the re-register times.
 
Status
Not open for further replies.

Forum statistics

Threads
111,979
Messages
590,101
Members
164,908
Latest member
FarizQasimov