Sun Microsystems Sun Fire V490 User Manual

Page 176

Advertising
background image

148

Sun Fire V490 Server Administration Guide • August 2004

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

.

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.

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

For example, for the interface ce2, type:

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

sunrise #

cat /etc/hostname.ce0

sunrise

sunrise #

cat /etc/hostname.ce1

sunrise-1

sunrise #

cat /etc/hostname.ce2

sunrise-2

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

sunrise # ifconfig ce2 plumb up

Advertising