Configure Hosts for Network Client in Solaris


How to Configure Hosts for Network Client Mode (It will get info from DHCP server)
————————————————————————————–

Search the /etc directory for the nodename file.
If such a file exists, delete it.
Eliminating /etc/nodename causes the system to use the hostconfig program to obtain the host name, domain name, and router addresses from the network
configuration server. See “Network Configuration Procedures” on page 101.

Create the /etc/hostname.interface file, if it does not exist.
Ensure that the file is empty. An empty /etc/hostname.interface file causes the system to acquire the IP address from the network configuration server.

Ensure that the /etc/inet/hosts file contains only the host name and IP address of the loopback network interface.
# cat /etc/inet/hosts
# Internet host table
#

127.0.0.1 localhost

The IPv4 loopback interface has the IP address 127.0.0.1. For more information, see “Loopback Address” on page 186. The file should not contain the IP address and host name for the local host (primary network interface).

Check for the existence of an /etc/defaultdomain file.
If such a file exists, delete it.
The hostconfig program automatically sets the domain name. To override the domain name that is set by hostconfig, type the substitute domain name in the
/etc/defaultdomain file.

Ensure that the search paths in the client’s /etc/nsswitch.conf file reflect the name service requirements for your network.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s