Changing the IP/Hostname on Solaris 10

Changing the IP/Hostname on Solaris 10 requires editing below files :

1. add/modify entry of /etc/hosts
# cat /etc/hosts
#
# Internet host table
#
127.0.0.1       localhost
192.168.2.100   soladb1         loghost
10.10.10.1      soladb1-priv

2. edit name /etc/nodename to you hostname
# cat /etc/nodename
soladb1

3. Edit/add file /etc/hostname.<interface name>
# cat hostname.e1000g0
soladb1

# cat /etc/hostname.e1000g1
soladb1-priv

4. If you are changing network address, you will need to change the router address in the file:
#cat /etc/defaultrouter

I just leave defaultrouter file blank.