Platform Notes: The Sun Quad FastEthernet Device Driver

Configuring the Host File

After installing the Sun Quad FastEthernet driver software, you must create a hostname.qfenum file for the Ethernet interfaces on the adapter. You must also create both an IP address and a host name for the Ethernet interfaces in the /etc/hosts file.

To Configure the Host File
  1. At the command line, use the grep command to search the /etc/path_to_inst file for qfe devices.

    For a Sun Quad FastEthernet PCI adapter:


    # grep qfe /etc/path_to_inst
    "/pci@1f,2000/pci@2/SUNW,qfe@0,1" 0 "qfe"
    "/pci@1f,2000/pci@2/SUNW,qfe@1,1" 1 "qfe"
    "/pci@1f,2000/pci@2/SUNW,qfe@2,1" 2 "qfe"
    "/pci@1f,2000/pci@2/SUNW,qfe@3,1" 3 "qfe"

    In the example above, the four SUNW,qfe@x,1 instances are from a Sun Quad FastEthernet PCI adapter installed in slot 2.

    For a Sun Quad FastEthernet SBus adapter:


    # grep qfe /etc/path_to_inst
    "/sbus@1f,0/SUNW,qfe@1,8c10000" 1 "qfe"
    "/sbus@1f,0/SUNW,qfe@1,8c00000" 0 "qfe"
    "/sbus@1f,0/SUNW,qfe@1,8c30000" 3 "qfe"
    "/sbus@1f,0/SUNW,qfe@1,8c20000" 2 "qfe"

    In the example above, the four SUNW,qfe@1 instances are from a Sun Quad FastEthernet SBus adapter installed in slot 1.

  2. Create an /etc/hostname.qfenum file, where num is the instance number of each interface you plan to use.

    If you want to use all of the network interfaces from the example in Step 1, you will need to create four files:

    File Name 

    Instance  

    Number 

    Adapter Ethernet 

    Network Interface 

    /etc/hostname.qfe0

    /etc/hostname.qfe1

    /etc/hostname.qfe2

    /etc/hostname.qfe3

    • Do not create /etc/hostname.qfenum files for Sun Quad FastEthernet adapter network interfaces you plan to leave unused.

    • The /etc/hostname.qfenum file must contain the host name for the appropriate network interface.

    • The host name should have an IP address that will need to be entered in the /etc/hosts file.

    • The host name should be different from any other host name of any other interface, for example: /etc/hostname.hme0 and /etc/hostname.qfe2 cannot share the same host name.

    Using the instance examples in Step 1, the following example shows the four /etc/hostname.qfenum files required for a system called zardoz that has a Sun Quad FastEthernet adapter (zardoz-11, zardoz-12, zardoz-13, and zardoz-14).


    # cat /etc/hostname.hme0
    zardoz
    # cat /etc/hostname.qfe0
    zardoz-11
    # cat /etc/hostname.qfe1
    zardoz-12
    # cat /etc/hostname.qfe2
    zardoz-13
    # cat /etc/hostname.qfe3
    zardoz-14

  3. Create an appropriate entry in the /etc/hosts file for each active qfe network interface.

    Using the previous example, you will have:


    # cat /etc/hosts
    #
    # Internet host table
    #
    127.0.0.1     localhost
    129.144.10.57 zardoz    loghost
    129.144.11.83 zardoz-11
    129.144.12.41 zardoz-12
    129.144.13.67 zardoz-13
    129.144.14.30 zardoz-14

  4. Reboot your system.