Securing-Optimizing-RH-Linux-1_2_95
Comments and suggestions concerning this book should be mailed to gmourani@videotron.ca
© Copyright 1999-2000 Gerhard Mourani and Open Network Architecture ®
95
Problem 2
If the drivers(s) of the card(s) is/are compiled into the kernel (monolithic kernel), the PCI probes
will find all related cards automatically. ISA cards will also find all related cards automatically, but
in some circumstance ISA cards still need to do the following. This information is stored in the file
/etc/lilo.conf. The method is to pass boot-time arguments to the kernel, which is usually done by
LILO.
For ISA cards, edit the lilo.conf file (vi /etc/lilo.conf) and add:
append=ether=0,0,eth1
NOTE: First test your ISA cards without the boot-time arguments in the lilo.conf file and if this fail
use the boot-time arguments.
In this case eth0 and eth1 will be assigned in the order that the cards are found at boot. Since we
have recompiled the kernel, we must use the second method (If the drivers(s) is/are compiled into
the kernel) to install our second Ethernet card on the system. Remember this is requiring only in
some circumstance for ISA cards, PCI cards will be find automatically.
Files related to networking functionality
In Linux, the TCP/IP network is configured through several text files you may have to edit in to
make networking work. Its very important to know the configurations files related to TCP/IP
networking, so that you can edit and configure the files if necessary. Remember that our server
doesnt have an Xwindow interface to configure files via graphical interface. Even if you use a
GUI in your daily activities it is important to know how to configure network in text mode. The
following sections describe the basic TCP/IP configuration files.
The /etc/HOSTNAME file
This file stores your systems host nameyour systems fully qualified domain name (FQDN),
such as deep.openarch.com.
Following is a sample /etc/HOSTNAME file:
deep.openarch.com
The /etc/sysconfig/network-scripts/ifcfg-ethN files
Files configurations for each network device you may have or want to add on your system are
located in the /etc/sysconfig/network-scripts/ directory with Red Hat Linux 6.1 and are named
ifcfg-eth0 for the first interface and ifcfg-eth1 for the second etc.
Following is a sample /etc/sysconfig/network-scripts/ifcfg-eth0 file:
DEVICE=eth0
IPADDR=208.164.186.1
NETMASK=255.255.255.0
NETWORK=208.164.186.0
BROADCAST=208.164.186.255
ONBOOT=yes
BOOTPROTO=none
USERCTL=no