How to change the IP address in Solaris 10

Here is a list of files that you need to edit when changing the IP address of an interface in Solaris 10.

Add the ip address and server name to the host file.

vi /etc/hosts server-name

Select the interface you want, your server may have more than one network interfaces.

vi /etc/hostname.bge0 netmask

Change the node name

vi /etc/nodename

Add the gateway ip address

vi /etc/defaultrouter

Add the DNS servers ip addresses

vi /etc/resolv.conf

Add the network address

vi /etc/netmasks

Now reboot the server.