Trusted Solaris Installation and Configuration

How to Add Network Interfaces

For every network interface, a file /etc/hostname.interface file must exist. The installation program creates the file for the primary interface only.


Note -

If this procedure is done by the install team before the roles secadmin and admin have been credentialed, they use root to do the procedure.


To Determine the Network Interfaces

  1. As role admin, at label admin_low, use the prtconf command to find the network interfaces.


    # prtconf | grep instance
    ...	le, instance #0
    	qe2, instance #0...
    	qe3, instance #0...
    
  2. List the secondary interfaces.


    # ls /etc/hostname*
    hostname.le
    

    The primary interface was configured during installation; its file exists.

    Continue with "To Create the Network Interface Files".

    If you know that you have created an /etc/hostname.interface entry for every interface, use the ifconfig(1M) command.


    # ifconfig -a
    le0: flags=
    
    	863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> MTU 1500
    	inet 129.150.118.111 netmask ffffff00 broadcast 129.150.118.255
    	ether 8:0:21:62:13:a9
     qe2: flags=
    
    	863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 1500
    	inet 129.150.117.22 netmask ffffff00 broadcast 129.150.117.255
    	ether 8:0:21:64:20:a3
     qe3: flags=
    
    	863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 1500
    	inet 129.150.119.111 netmask ffffff00 broadcast 129.150.119.255
    	ether 8:0:21:52:11:a2
    

    Continue with "To Create the Network Interface Files".

To Create the Network Interface Files

  1. As secadmin, at label admin_low, for each secondary interface, open a file named /etc/hostname.interface in the Admin Editor.

    See "To Run a System_Admin Action" if you are unfamiliar with the steps.

    For example, if the host grebe-118 is a secondary interface and uses a quad ethernet card, the file name is /etc/hostname.qe.

    1. In the file, enter the hostname associated with the interface, such as grebe-118.

    2. Write and exit the editor.

    3. Change the permissions on the file to 644.


      $ chmod 644 /etc/hostname.interface
      

      For example, for the file named /etc/hostname.qe:


      $ chmod 644 /etc/hostname.qe
      

  2. As secadmin, at label admin_low, add every interface to the local /etc/hosts file using the Database Manager with no naming service.

    See "To Open and Modify a Solstice_Apps Database" if you are unfamiliar with editing the Hosts database.

  3. As secadmin, at label admin_low, add every interface to the local tnrhdb file using the Database Manager with no naming service.