ifconfig?
I've never used ifconfig to change a IP when I always want it to have that as a IP. I run Solaris 7 & 8 + Sun OS. Ifconfig is used to change a IP yes. BUT after you restart the system it'll go back to the IP that is in the host table.
ifconfig is a temp thing. It wont keep the IP you added with ifconfig after a reboot.
As the above post says we need to know what your O/S is.
In Solaris though I'd change the /etc/hosts file, and whatever else I would like to change.
Just remember ifocnfig is only for temp IP's. It's good to know and handy to use if you work on more then one network.