Network Configuration

 < Day Day Up > 

This section describes how to edit the network host files after any of the Sun adapters have been installed on your system. The section contains the following topics:

  • "Configuring the System to Use the Embedded MAC Address" on page 233

  • "Configuring the Network Host Files" on page 234

  • "Setting Up a GigaSwift Ethernet Network on a Diskless Client System" on page 235

  • "Installing the Solaris Operating System Over a Network" on page 236

Configuring the System to Use the Embedded MAC Address

All Sun networking adapters have a MAC address embedded on their PROM associated with each port available on the adapter. To use the adapter's embedded MAC address instead of the MAC address on the system's IDPROM, set the local-mac-address\? OBP property to true. You must reboot your system for these changes to become active. As a rule, this is something that should be configured to effectively operate with Solaris software.

  • As superuser, set the local-mac-address\? OBP property to true:

 # eeprom local-mac-address\?=true 

Alternatively, this can be set at the Open Boot Prom level:

 ok setenv local-mac-address? true 

Configuring the Network Host Files

After installing the driver software, you must create a hostname.ceinstance file for the network interface. You must also create both an IP address and a host name for that interface in the /etc/hosts file. For the remaining test, we will assume the ce interface as an example interface for this description.

To Configure the Network Host files
1. At the command line, use the grep command to search the /etc/path_to_inst file for ce interfaces.

 # grep ce /etc/path_to_inst "/pci@1f,4000/network@4" 0 "ce" 

In the previous example, the device instance is from a Sun GigaSwift Ethernet adapter installed in slot 1. For clarity, the instance number is in bold italics.

Be sure to write down your device path and instance, which in the example is "/pci@1f,0/pci@1/network@4 0". While your device path and instance might be different, they will be similar. You will need this information to make changes to the ce.conf file. See "Setting Network Driver Parameters Using the ndd Utility" on page 238.

2. Use the ifconfig command to set up the adapter's ce interface.

3. Use the ifconfig command to assign an IP address to the network interface. Type the following at the command line, replacing ip_address with the adapter's IP address:

 # ifconfig ce0 plumb ip_address up 

Refer to the ifconfig(1M) man page and the Solaris documentation for more information.

If you want a setup that will remain the same after you reboot, create an /etc/hostname.ceinstance file, where instance corresponds to the instance number of the ce interface you plan to use.

To use the adapter's ce interface in the Step 1 example, create an /etc/hostname.ce0 file where 0 is the instance number of the ce interface. If the instance number were 1, the filename would be /etc/hostname.ce1.

Do not create an /etc/hostname.ceinstance file for a Sun GigaSwift Ethernet adapter interface you plan to leave unused.

  • The /etc/hostname.ceinstance file must contain the host name for the appropriate ce interface.

  • The host name should have an IP address and should be listed in the /etc/hosts file.

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

The following example shows the /etc/hostname.ceinstance file required for a system called zardoz that has a Sun GigaSwift Ethernet adapter (zardoz-11).

 # cat /etc/hostname.hme0 zardoz # cat /etc/hostname.ce0 zardoz-11 

4. Create an appropriate entry in the /etc/hosts file for each active ce interface.

For example:

 # cat /etc/hosts # # Internet host table # 127.0.0.1   localhost 129.144.10.57 zardoz  loghost 129.144.11.83 zardoz-11 

Setting Up a GigaSwift Ethernet Network on a Diskless Client System

Before you can boot and operate a diskless client system across a network, you must first install the network device driver software packages into the root directory of the diskless client.

To Set Up a Network Port on a Diskless Client
1. Locate the root directory of the diskless client on the host server.

The root directory of the diskless client system is commonly installed in the host server's /export/root/client_name directory, where client_name is the diskless client's host name. In this procedure, the root directory will be:

 /export/root/client_name 

2. Use the pkgadd -R command to install the network device driver software packages to the diskless client's root directory on the server.

 # pkgadd -R root_directory/Solaris_2.7/Tools/Boot -d . SUNWced 

3. Create a hostname.ceinstance file in the diskless client's root directory.

You will need to create an /export/root/client_name/etc/hostname.deviceinstance file for the network interface. See "Configuring the Network Host Files" on page 234 for instructions.

4. Edit the hosts file in the diskless client's root directory.

You will need to edit the /export/root/client_name/etc/hosts file to include the IP address of the Network interface. See "Configuring the Network Host Files" on page 234 for instructions.

  • Be sure to set the MAC address on the server side and rebuild the device tree if you want to boot from the GigaSwift Ethernet port.

5. To boot the diskless client from the Network interface port, type the following boot command:

 ok boot path-to-device:link-param, -v 

     < Day Day Up > 


    Networking Concepts and Technology. A Designer's Resource
    Networking Concepts and Technology: A Designers Resource
    ISBN: 0131482076
    EAN: 2147483647
    Year: 2003
    Pages: 116

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net