一、设置主机名
The first file you need to configure when running in local files mode is /etc/nodename. This file needs to have your computer's host name (also called a node name) in it. Your computer's name should be the only entry in this file. When typing in your computer's name, remember that Solaris is case sensitive.
Next, you will need to create a host name interface file. The name of this file will be /etc/ hostname.interface. In the filename, the interface variable is replaced by the interface name of your primary network connection. For example, if your primary network interface is le0, the filename would be /etc/hostname.le0. If you have multiple network connections, you will have multiple /etc/hostname.interface files, one for each network connection. The only entry inside the file will be your host name, just as in /etc/nodename. You can also substitute the interface IP address instead of a host name in this file.
After creating or configuring /etc/hostname.interface, you will need to set up the /etc/inet/hosts file. This file is also known as the hosts database. This file needs to contain the IP address and corresponding host name for every computer on your network. When you attempt to access another computer on your network by host name, your computer will check the hosts database for the computer's name and then attempt to contact the computer by its IP address.