Originally posted by davepal
I currently have DHCP running on my Solaris 9 box. I realized that I need static IP for an application that I plan to run on the network. How do I revert back ?
Any suggestions ?
Personnaly, i did have the same problem, i just did a :
ifconfig hme0 plumb (do a ifconfig -a to see if it is hme0 or anything else)
ifconfig hme0 192.168.1.2 netmasks 255.255.255.0 up (replace the 192 by your own ip)
echo "192.168.1.100" > /etc/defaultrouter (your router)
echo "192.168.1.0 255.255.255.0" > /etc/netmasks
edit /etc/nsswitch.conf and check if you have the word "dns" after the line "host:"
Remove the file: /etc/dhcp.hme0
everything should be okay when you'll reboot, you can put your IP and host in /etc/hosts and your hostname in: /etc/hostname.hme0