Fortinet black logo
1.2.0

Changing Dynamic to Static IP Address

Changing Dynamic to Static IP Address

Perform these steps to change the default dynamic IP address to static IP address.

  1. Stop the Application services before the Infrastructure services.
  2. Login into the Infrstructure server (as root user) and edit the /etc/sysconfig/network- scripts/ifcfg-ens192 file.
    Change the value of BOOTPROTO to static and add the below entries.
    IPADDR=x.x.x.x
    NETMASK=x.x.x.x
    GATEWAY=x.x.x.x
    This example depicts the /etc/sysconfig/network- scripts/ifcfg-ens192 file with dynamic and static IP addresses configured.

  3. Run the service network restart command to restart network services.
    The ifconfig ens192 output has the newly added details.
  4. Run the sysctl -w net.ipv4.ip_forward=1 command to enable IPv4 Forwarding. See IPv4 Forwarding.
  5. Repeat the previous steps on the Application server.
  6. Login into the Infrastructure server (as presence user) and run the presence-infra --basics command to update the new IP address of the Application server.
  7. [As presence user] Start the Infrastructure services.
  8. Login into the Application server (as presence user) and run the presence-apps --infra_host command to update the new IP address of the Infrastructure server and the presence-apps --basics command to update new IP address of Application server.
  9. [As presence user] Start the Application services.

Changing Dynamic to Static IP Address

Perform these steps to change the default dynamic IP address to static IP address.

  1. Stop the Application services before the Infrastructure services.
  2. Login into the Infrstructure server (as root user) and edit the /etc/sysconfig/network- scripts/ifcfg-ens192 file.
    Change the value of BOOTPROTO to static and add the below entries.
    IPADDR=x.x.x.x
    NETMASK=x.x.x.x
    GATEWAY=x.x.x.x
    This example depicts the /etc/sysconfig/network- scripts/ifcfg-ens192 file with dynamic and static IP addresses configured.

  3. Run the service network restart command to restart network services.
    The ifconfig ens192 output has the newly added details.
  4. Run the sysctl -w net.ipv4.ip_forward=1 command to enable IPv4 Forwarding. See IPv4 Forwarding.
  5. Repeat the previous steps on the Application server.
  6. Login into the Infrastructure server (as presence user) and run the presence-infra --basics command to update the new IP address of the Application server.
  7. [As presence user] Start the Infrastructure services.
  8. Login into the Application server (as presence user) and run the presence-apps --infra_host command to update the new IP address of the Infrastructure server and the presence-apps --basics command to update new IP address of Application server.
  9. [As presence user] Start the Application services.