Managing SAN Devices and Multipathing in Oracle® Solaris 11.2

Exit Print View

Updated: December 2014
 
 

How to Configure the Host for Automatic Network Configuration

A system's hostname is set in the svc:/system/identity:node service. For example, the hostname is sys-A and the IPFC network interface is fcip0.

  1. Become an administrator.
  2. Confirm that the hostname is set.
    # svccfg -s identity:node
    svc:/system/identity:node> listprop config/nodename
    config/nodename astring  sys-A

    If you need to set the hostname, use syntax similar to the following:

    # svccfg -s identity:node setprop config/nodename = "neo-1"
  3. Make any additional entries to the /etc/inet/hosts file.

    The installation program creates the /etc/inet/hosts file with minimum entries. You must manually make additional entries with a text editor. For additional information, see hosts (4) .

    The /etc/inet/hosts file contains the hosts database. This file contains the host names and the primary network interface IP addresses, as well as the IP addresses of other network interfaces attached to the system and of any other network interfaces that the machine must know about.

    The following example shows an etc/inet/host file.

    127.0.0.1      localhost     loghost
    192.168.200.70   neo-1     #This is the local host name
    192.168.201.10 fcip0 #Interface to network 192.168.201.10
  4. Confirm that the name service SMF service is configured with files nis for hosts.
    # svccfg
    svc:> select network/nis/client:default
    svc:/network/nis/client:default> select name-service/switch
    svc:/system/name-service/switch> listprop config/host
    config/host astring     "files nis"
    svc:/system/name-service/switch> quit