Info |
---|
The following procedure is applicable to Appliance Mode Only The steps below are only applicable for All-in-One DPOD appliance mode installation only. |
The appliance IP addresses are address is static by default. Hence, changing the IP address of the appliance requires a few steps.
Change the IP address (
IPADDR
) of the network interface, and if required also the network subnet mask (NETMASK
), by editing the network interface configuration file (e.g.: for network interface eth0):Code Block language bash vi /etc/sysconfig/network-scripts/ifcfg-eth0
You may use the command
ip a
to display the list of current IP addresses and network interfaces.[Optional] If the appliance’s network subnet has changed, change the default gateway (
GATEWAY
) by editing the network configuration file:Code Block language bash vi /etc/sysconfig/network
You may use the command
ip route
to display the current routing configuration.[Optional] If the DNS configuration has changed, change the name servers (
nameserver
) by editing the DNS configuration file:Code Block language bash vi /etc/resolv.conf
Restart the network service:
Code Block language bash systemctl restart network
Update hosts file and replace the old IP address with the new IP address:
Code Block sed -i "3,1000 s/<Old IP Address>/<New IP Address>/" /etc/hosts
Run the following SQL using
ij
utility:Code Block update node set agentsIp='<New IP Address>' where agentsIp='<Old IP Address>'; update node set restClientAddress='https://<New IP Address>' where restClientAddress='https://<Old IP Address>'; UPDATE HatsRecurringTask SET isEnabled = true where tasktype = 'POST_UPGRADE'; quit;
Stop all the application services using
app-util.sh
→ -> option 2 (stop all)Start all the application services using
app-util.sh
→ -> option 1 (start all)