1. Bicom Systems
  2. Solution home
  3. SERVERware
  4. HOWTOs

General :: HOW TO Change IP addresses in SW environment

HOW TO Change IP addresses in your SERVERware environment




Should there be a need to change the IP addresses on the SERVERware environment, one would need to follow the procedure below:


  • Stop all VPSs on the primary including the Controller (lxc-stop -n CONTROLLER).

  • On Primary → /etc/sysmonit/virt_down br0

  • On Secondary modify → /etc/sysmonit/mirror.cfg and change the address under 'virtaul_ifaces"

  • On Primary modify → /etc/sysmonit/mirror.cfg and change the address under 'virtaul_ifaces"

  • On Secondary use netsetup to change network interface br0 and confirm connectivity

  • On Primary use netsetup to change network interface br0 and confirm connectivity

  • Edit → /NETSTOR/CONTROLLER/net.conf to change the gateway and IP address of the controller

  • On Primary → /etc/sysmonit/virt_up br0 and confirm connectivity on the new floating IP

  • Start the controller → 'lxc-start -n CONTROLLER' and confirm connectivity to the controller

  • Attach to the controller and update the IP address in the database



To update IP addresses in the database, please enter ‘mysql’ → ‘/opt/pbxware/sh/mysql’ and follow the instructions below:


  • mysql> use serverware

  • mysql> select * from sw_mirror_nodes;







  • mysql> update sw_mirror_nodes set ip_address="192.168.242.121" where id=1;

    • Query OK, 1 row affected (0.00 sec)

    • Rows matched: 1 Changed: 1 Warnings: 0

  • mysql> update sw_mirror_nodes set ip_address="192.168.242.122" where id=2;

    • Query OK, 1 row affected (0.00 sec)

    • Rows matched: 1 Changed: 1 Warnings: 0


After the above changes are made in the database, please proceed further with the following steps:


  • Restart controller VPS

  • Log in to the Controller GUI → edit the host → enter the new floating IP address → check the ‘re-activate’ box → enter the root password.

  • Select the host and click on 'Enable'

  • Settings / Networking → Create a new LAN2 and configure it with mixed type and appropriate parameters of the new network.

  • Extend the network for the IP addresses for the VPS's

  • Edit each VPS and remove IP address from the old network and add an IP address from the new network.

  • Unassign the old LAN network from all Domains, and finally, remove it from Settings / Networking


The above procedure is related to the changes made in the backend configuration after which new addresses should be in use and functional.


After this is completed, one would need to change the IPs presented on the ‘message of the day’ when connected to either storage host.


NOTE: This is a provisional change that does not affect the functionality of the SERVERware environment as this is just a message presented when a user ssh to the storage hosts, as shown on the screenshot.




To change IP addresses here, one would need to ssh to the host in question and make changes on the following path → /etc/motd:


  • Ssh to the storage host in question (as the root user) 

  • Execute → nano /etc/motd

  • Change the IP addresses

  • Save the changes made


Note: Repeat the steps above on the secondary storage host (if available).


Furthermore, the change can be made in the SERVERware setup wizard as well. Once again, this change is not affecting the initial configuration and functionality of the SERVERware environment. Rather, the change is just the representation of the IP addresses in the setup wizard.




To change the IPs in the setup wizard one would need to ssh to the storage host in the primary state and make changes in the following file → ‘NETSTOR/.config’:


  • Ssh to the storage host in question (as the root user) 

  • Execute → nano /NETSTOR/.config

  • Change the IP addresses

  • Save the changes made


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article