C H A P T E R  8

Configuring Network Interfaces and the Boot Device

This chapter provides information and instructions that are required to plan and to configure the supported network interfaces.

Tasks covered in this chapter include:



Note - Many of the procedures in this chapter assume that you are familiar with the OpenBoot firmware and that you know how to enter the OpenBoot environment. For background information, refer to About the ok Prompt. For instructions, refer to How to Get to the ok Prompt.





caution icon

Caution - Do not attempt to access any internal components unless you are a qualified service technician. Detailed service instructions can be found in the
Sun Fire V490 Server Parts Installation and Removal Guide, which is included on the Sun Fire V490 Documentation CD.




How to Configure the Primary Network Interface

Before You Begin

You must perform this task:

For background information, refer to:

If you are using a PCI network interface card, refer to the documentation supplied with the card.

What to Do

1. Choose a network port, using the following table as a guide.


Ethernet Port

PCI Bus/Clock Rate

OpenBoot devalias

Device Path

1

PCI C/66 MHz

net1

/pci@9,600000/network@1

0

PCI D/33 MHz

net0

/pci@9,700000/network@2


2. Attach an Ethernet cable to the port you selected.

Refer to How to Attach a Twisted-Pair Ethernet Cable.

3. Choose a host name for the system and make a note of it.

You need to furnish the name in a later step.

The host name must be unique within the network. It can consist only of alphanumeric characters and the dash (-). Do not use a dot in the host name. Do not begin the name with a number or a special character. The name must not be longer than 30 characters.

4. Determine the unique Internet Protocol (IP) address of the network interface and make a note of it.

You need to furnish the address in a later step.

An IP address must be assigned by the network administrator. Each network device or interface must have a unique IP address.

5. Resume the installation of the system.

Return to Chapter 1.



Note - During installation of the Solaris OS, the software automatically detects the system's on-board network interfaces and any installed PCI network interface cards for which native Solaris device drivers exist. The operating system then asks you to select one of the interfaces as the primary network interface and prompts you for its host name and IP address. You can configure only one network interface during installation of the operating system. You must configure any additional interfaces separately, after the operating system is installed. For more information, refer to How to Configure Additional Network Interfaces.



What Next

After completing this procedure, the primary network interface is ready for operation. However, in order for other network devices to communicate with the system, you must enter the system's IP address and host name into the namespace on the network name server. For information about setting up a network name service, consult:

The device driver for the system's on-board Sun GigaSwift Ethernet interfaces is automatically installed with the Solaris release. For information about operating characteristics and configuration parameters for this driver, refer to the following document:

This document is available on the Solaris Software Supplement CD for your specific Solaris release.

If you want to set up an additional network interface, you must configure it separately, after installing the operating system. Refer to:



Note - The Sun Fire V490 system conforms to the Ethernet 10/100BASE-T standard, which states that the Ethernet 10BASE-T link integrity test function should always be enabled on both the host system and the Ethernet hub. If you have problems establishing a connection between this system and your hub, verify that the Ethernet hub also has the link test function enabled. Consult the manual provided with your hub for more information about the link integrity test function.




How to Configure Additional Network Interfaces

Before You Begin

Perform the following tasks to prepare an additional network interface:



Note - All internal options (except disk drives and power supplies) must be installed by qualified service personnel. Installation procedures for these components are covered in the Sun Fire V490 Server Parts Installation and Removal Guide, which is included on the Sun Fire V490 Documentation CD.



What to Do

1. Choose a network host name for each new interface.

The host name must be unique within the network. It can consist only of alphanumeric characters and the dash (-). Do not use a dot in the host name. Do not begin the name with a number or a special character. The name must not be longer than 30 characters.

Usually an interface host name is based on the machine host name. For example, if the machine is assigned the host name sunrise, the added network interface could be named sunrise-1. The machine's host name is assigned when Solaris software is installed. For more information, refer to the installation instructions accompanying the Solaris software.

2. Determine the Internet Protocol (IP) address for each new interface.

An IP address must be assigned by your network administrator. Each interface on a network must have a unique IP address.

3. Boot the operating system (if it is not already running) and log on to the system as superuser.

Be sure to perform a reconfiguration boot if you just added a new PCI network interface card. Refer to How to Initiate a Reconfiguration Boot.

Type the su command at the system prompt, followed by the superuser password:


% su
Password:

4. Create an appropriate /etc/hostname file for each new network interface.

The name of the file you create should be of the form /etc/hostname.cenum, where ce is the network interface type identifier and num is the device instance number of the interface according to the order in which it was installed in the system.

For example, the file names for the system's on-board Sun GigaSwift Ethernet interfaces are /etc/hostname.ce0 and /etc/hostname.ce1, respectively. If you add a PCI Ethernet adapter card as a third ce interface, its file name should be /etc/hostname.ce2. At least one of these files--the primary network interface--should exist already, having been created automatically during the Solaris installation process.



Note - The documentation accompanying the network interface card should identify its type. Alternatively, you can enter the show-devs command from the ok prompt to obtain a list of all installed devices.



5. Edit the /etc/hostname file(s) created in Step 4 to add the host name(s) determined in Step 1.

Following is an example of the /etc/hostname files required for a system called sunrise, which has two on-board Sun GigaSwift Ethernet interfaces (ce0 and ce1) and a PCI Ethernet adapter card (ce2). A network connected to the on-board ce0 and ce1 interfaces will know the system as sunrise and sunrise-1, while networks connected to the PCI-based ce2 interface will know the system as sunrise-2.


sunrise #  cat /etc/hostname.ce0
sunrise
sunrise #  cat /etc/hostname.ce1
sunrise-1
sunrise #  cat /etc/hostname.ce2
sunrise-2

6. Create an entry in the /etc/hosts file for each active network interface.

An entry consists of the IP address and the host name for each interface.

The following example shows an /etc/hosts file with entries for the three network interfaces used as examples in this procedure.


sunrise #  cat /etc/hosts
#
# Internet host table
#
127.0.0.1     localhost
129.144.10.57 sunrise loghost
129.144.14.26 sunrise-1
129.144.11.83 sunrise-2

7. Manually plumb and enable each new interface using the ifconfig command.

For example, for the interface ce2, type:


sunrise # ifconfig ce2 plumb up

For more information, refer to the ifconfig(1M) man page.

What Next

After completing this procedure, any new network interfaces are ready for operation. However, in order for other network devices to communicate with the system through the new interface, the IP address and host name for each new interface must be entered into the namespace on the network name server. For information about setting up a network name service, consult:

The ce device driver for the system's on-board Sun GigaSwift Ethernet interfaces is automatically configured during Solaris installation. For information about operating characteristics and configuration parameters for these drivers, refer to

This document is available on the Solaris Software Supplement CD for your specific Solaris release.



Note - The Sun Fire V490 system conforms to the Ethernet 10/100BASE-T standard, which states that the Ethernet 10BASE-T link integrity test function should always be enabled on both the host system and the Ethernet hub. If you have problems establishing a connection between this system and your Ethernet hub, verify that the hub also has the link test function enabled. Consult the manual provided with your hub for more information about the link integrity test function.




How to Select the Boot Device

The boot device is specified by the setting of an OpenBoot firmware configuration parameter called boot-device. The default setting of this parameter is disk net. Because of this setting, the firmware first attempts to boot from the system hard drive, and if that fails, from the on-board Sun GigaSwift Ethernet interface.Before You Begin

Before you can select a boot device, you must complete system installation according to the instructions in Chapter 1.

Specifically, you must set up a system console and power on the system. Refer to:

If you want to boot from a network, you must also connect the network interface to the network and configure the network interfaces. Refer to:

What to Do

This procedure assumes that you are familiar with the OpenBoot firmware and that you know how to enter the OpenBoot environment. For more information, refer to About the ok Prompt.

single-step bulletAt the ok prompt, type:


ok setenv boot-device device-specifier

where the device-specifier is one of the following:



Note - You can also specify the name of the program to be booted as well as the way the boot program operates. For more information, refer to the OpenBoot 4.x Command Reference Manual, included with the Solaris Software Supplement CD that ships with Solaris software.



If you want to specify a network interface other than an on-board Ethernet interface as the default boot device, you can determine the full path name of each interface by typing:


ok show-devs

The show-devs command lists the system devices and displays the full path name of each PCI device.

What Next

For more information about using the OpenBoot firmware, refer to: