FreePBX HA-Changing Node or Floating IP Addresses

 

View Floating IP Address

  • From the CLI, we can run pcs status to see the current status of the cluster.

    • pcs resource show floating_ip

Screen Shot 2013-11-11 at 1.23.07 PM.png

 

 

Changing Floating IP Address

  • To change the floating IP address of your HA cluster, you would run the following command from the current master server:

    • pcs resource update floating_ip ip=199.102.239.186

  • The floating IP address should now be updated.

Screen Shot 2013-11-11 at 1.26.15 PM.png

Changing Node IP Address(es)

Once a cluster has been built, you can only change the IP address of a node to another IP in the same subnet. For example, if the node IPs of your cluster are 192.168.1.10 and 192.168.1.11 you can change them to any free IP in the 192.168.1.x range.

  • On the STANDBY NODE determine the name of the LAN interface using 'ifconfig', probably eth0

    [root@freepbx-a ~]# ifconfig eth0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx inet addr:10.16.0.43 Bcast:10.16.0.255 Mask:255.255.255.0

     

  • edit the file associated with this interface and change only the IPADDR line to the new LAN IP address, remembering that you are limited to another address on the same subnet. Save changes, and reboot the standby node

    [root@freepbx-a ~]# nano /etc/sysconfig/network-scripts/ifcfg-eth0   DEVICE="eth0" BOOTPROTO="static" BROADCAST="10.16.0.255" DNS1="10.16.0.2" GATEWAY="10.16.0.1" HWADDR="xx:xx:xx:xx:xx:xx" IPADDR="10.16.0.43" IPV6INIT="yes" IPV6_AUTOCONF="yes" NETMASK="255.255.255.0" NM_CONTROLLED="yes" ONBOOT="yes" TYPE="Ethernet" UUID="xxxxxxxx-xxxxx-xxxx-xxxx-xxxxxxxxxxxx"

     

  • When the standby node comes back, confirm the new address is working,  and the cluster is healthy. 

  • Now force a fail over so the primary node becomes the standby node. Do the exact same process again with the new standby node and reboot.

  • When the standby node comes back, confirm new IP address and cluster is healthy.

Return to Documentation Home I Return to Sangoma Support