set ip address

I'm new to Solaris.
How do I set a server's IP address?

Thanks in advance.

The ifconfig command binds IP addresses to network interfaces.

If you wanto to set ip address and keep this address after boot, edit your /etc/hostname.interface file, where interface is the interface you want to bind the address. If this file contains the hostname of your system you can also change the ip address in /etc/hosts file.
Note: if you have more than one NIC, there must be the same number of /etc/hostname.interface files as NICs you have. By default, solaris only creates the hostname.interface file for the first NIC in your system. If you want to bind an IP addres to another card, you must put the IP address in these files (/etc/hostname.interface)

Regards

HTT

I missed that... the procedure I sent before must be used if you want to change the servers local IP address, or if you want to bind a new IP address to another NIC. If you want to change the ip resolution of a server's name, as NEO said, change it in the DNS server.

HTT