How to change IP address in Unix Solaris

To change IP address in Unix server (Solaris), you need to edit the following files.

  • /etc/hosts
  • /etc/hostname.**
  • /etc/rc2.d/S70staticroutes
  • /etc/inet/ipnodes

The “ipnodes” file in latest Solaris 10 release is a softlink to /etc/hosts, therefore it will be reflected upon editing /etc/hosts file. So manual changes is not required.