Changing Dynamic to Static IP Address
Perform these steps to change the default dynamic IP address to static IP address.
- Stop the Application services before the Infrastructure services.
- 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.
- Run the
service network restart
command to restart network services.
The ifconfig ens192 output has the newly added details. - Run the
sysctl -w net.ipv4.ip_forward=1
command to enable IPv4 Forwarding. See IPv4 Forwarding. - Repeat the previous steps on the Application server.
- 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. - [As presence user] Start the Infrastructure services.
- 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 thepresence-apps --basics
command to update new IP address of Application server. - [As presence user] Start the Application services.