If by mistake (or even conscious) you did configure a solaris 10 or bellow with DHCP and you want to disable it and set fixed IP, there are several steps you should follow…
There is a file called dhcp.interface_name in /etc that we must delete.
Now, create the file /etc/nodename with the hostname inside.
# echo webserver > /etc/nodename
now, create a file called hostname., where interface is the name of the device in solaris, like bge0, e1000g0, ce0, etc.
# echo webserver > /etc/hostname.bge0
Now, add in /etc/hosts the IP and hostname we want to set.
and remember to configure /etc/netmasks acordingly.
example: in /etc/hosts --> 172.16.8.55 webserver1 in /etc/netmasks --> 172.16.8.0 255.255.252.0
If it’s the primary interface you should add loghost after the hostname in /etc/hosts like:
172.16.8.55 webserver1 loghost
To set the default router, add the IP of the router in…
# echo 172.16.8.1 > /etc/defaultrouter