Changing.ipaddress of a sun-solaris machine

the hostname and ip-address has to be definded in

/etc/hosts

the hostname has to put in

/etc/hostname.