First of all, if you installed a new network card, let your
system know it. Stop the boot process with
-
.
In the boot prompt type boot -r to rebuild the
physical mapping.
Next, find the device name that corresponds to your
network interface card (NIC).
You can find it in the file /var/adm/messages or
/etc/path_to_inst.
In file /var/adm/messages, search for a line like
... PCIdevice: network@5.1, eri0, which shows
the presence of a network interface at device eri0.
In file /etc/path_to_inst it would appear like
"/pci@1f,0/pci@1/pci@1/SUNW,hme@0,1" 1 "hme".
In this case the device is hme1.
Other names of devices for netowrk cards are bge,
le, and ce, depending on the driver used.
The trailing number says if it is the first (0) or
second (1) NIC attached using this driver.
Once you found the device name, type ifconfig eri0 plumb
to make the device (here eri0) available for the system.
Plumbing is not really necessary here, once we will reboot the system.
But it is always good to test if a device can be plumbed.
If now want to configure your computer for a fixed-IP LAN,
do the following:
Write the hostname to the file /etc/hostname.eri0:
my_hostname
Write the following contents to the file /etc/hosts:
127.0.0.1 localhost loghost
myhost_ip my_hostname
Write the following contents to the file /etc/resolv.conf:
domain my.domain.com
nameserver1 ip1
nameserver2 ip2
search my.domain.com
search domain.com
Write the following contents to the file /etc/netmasks:
my_netowrk my_netmask
Write the following contents to the file /etc/nodename:
my_hostname
Write the following contents to the file /etc/defaultrouter:
ip_address_of_defaultrouter
reboot
OBSERVARTIONS:
Next: About this document ...
Up: 3 More ...
Previous: 3.4 Common Problems and