The name of the file you create should be of the form /etc/hostname.typenum,
where type is the network interface type identifier (some common types are ce, le,
hme, eri, and ge) 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 Gigabit Ethernet interfaces are
/etc/hostname.ce0 and /etc/hostname.ce1. If you add a PCI Fast Ethernet
adapter card as a third interface, its file name should be /etc/hostname.eri0. 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.
6. Edit the /etc/hostname file(s) created in
determined in
Step
Following is an example of the /etc/hostname files required for a system called
sunrise, which has two on-board Sun Gigabit Ethernet interfaces (bge0 and
bge1) and an Intel Ophir Gigabit Ethernet adapter (e1000g0). A network
connected to the on-board bge0 and bge1 interfaces will know the system as
sunrise and sunrise-1, while networks connected to the PCI-based e1000g0
interface will know the system as sunrise-2.
sunrise #
cat /etc/hostname.bge0
sunrise
sunrise #
cat /etc/hostname.bge1
sunrise-1
sunrise #
cat /etc/hostname.e1000g0
sunrise-2
7. 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.
1.
Chapter 7 Managing Network Interfaces
Step 5
to add the host name(s)
147
Need help?
Do you have a question about the Sun Fire V445 Server and is the answer not in the manual?
Questions and answers