Sun Microsystems V490 manual For more information, see the ifconfig1M man

Models: V490

1 274
Download 274 pages 18.59 Kb
Page 176
Image 176

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.1localhost

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, see the ifconfig(1M) man page.

148 Sun Fire V490 Server Administration Guide • August 2004

Page 176
Image 176
Sun Microsystems V490 manual For more information, see the ifconfig1M man