...
Info |
---|
The following procedure is applicable to All-in-One DPOD appliance mode installation only. In non-appliance installations, the operating system and network configuration is under the responsibility of the customer, so the following procedure can only be used as an example. For details about changing network addresses in a Cell environment, Change Cell Environment's Network Addresses. |
The appliance IP addresses are static by default. Hence, changing the IP address of the appliance is requires a 4-few steps process.
Change the IP of a network device address (
IPADDR
) of the network interface, and if required also the network subnet mask (NETMASK
), by editing the network interface configuration file . (Ee.g.: for network card interface eth0):Code Block language bash vi /etc/sysconfig/network-scripts/ifcfg-eth0
Change the values of IPADDR and NETMASK fields
Code Block language text title ifcfg-eth0 #My IP description # IPv-4 DEVICE="eth0" NM_CONTROLLED="yes" ONBOOT=yes HWADDR=00:ee:dd:cc:bb:aa TYPE=Ethernet BOOTPROTO=static NAME="System eth0" UUID=aaaabbbb-7777-8888-9999-aaaabbbbcccc IPADDR= 192.168.0.100 NETMASK=255.255.255.0
Use the command - ip addr show to see a device's IP address
When the appliance is moved to a different network subnet - Change the Default gatewayYou 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
Change the value of the GATEWAY field in the file
Code Block language text title /etc/sysconfig/network NETWORKING=yes HOSTNAME=server1.example.com GATEWAY=192.168.0.1 [...]
Use the command - ip route show to see a device's IP address
Change DNS name (Optional step) - DNS can be added or changed in the file /etc/resolv.conf 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
Change or add Domain Name Servers if required.
Code Block language text title resolv.conf [...] nameserver 192.168.1.1 nameserver 192.168.1.2 [...]
Restart the network service:
Code Block language bash title restart network services servicesystemctl restart network restart
Edit the /etc/hosts file
Change all the entries referring to theUpdate hosts file and replace the old IP address to use with the new IP address. For example:
Code Block language bash title restart network services 192.168.65.175 montier-management 192.168.65.175 montier-syslog 192.168.65.175 montier-wsm 192.168.65.175 montier-ext-eth
No need to change entries using the IP address 127.0.0.1
- Stop and Start all system services.
- In the web console navigate to system → nodes and edit the IP address of the agents in your data node raw.
- Re-configure syslog for the default domain on each monitored device (the Setup Syslog for device on the Device Management section
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)