> Company- and IT-organisation

> IT-equipment and installation

Installation of the router with RedHat**-Linux** 7.1

For this document and all references (links) please obey the hints and regulations concerning copyright, disclaimer and trademarks.

==> Concerning performance it would be advisible to use RedHat**-Linux** 9 as operating-system for the router - particularly if the router should also fulfill functions as a telefacs-server.

For the document describing the Installation of a router with RedHat**-Linux** 9 please follow this link.

As I had a spare notebook with an Intel 486-processor and I needed a router for ADSL-connection at home, I realised that RedHat**-Linux** 9 requieres at least a Pentium-processor.
So I set up my 486-notebook with RedHat**-Linux** 7.1 as described
.

All following instruction are for installing RedHat**-Linux** version 7.1.

Select the graphic option lowres:

During the boot process from diskette or CD-ROM a 'Welcome' screen is displayed where different options can be chosen.
At that time key in lowres and press the Enter-Key.
This will disable the recognition of the Video-Graphics-Adaptor (VGA) and perform the installation in Standard-VGA-Mode which is supported by all VGA.

Language Selection, Keyboard Configuration and Mouse Configuration:

Please select the appropriate values according to your configuration.

Install Options:

This computer is the 'security guard' which has to prevent attacks of all kind from the public internet to reach the private intranet.
To avoid the installation of packets causing security holes and to waste capacity with not used functions
Linux** will be installed as Custom System.

Disk Partitioning:

Select Manually partition with Disk Druid

    /boot

    48 MByte

    swap

    1000 MByte

    /

    Rest of the disk

    Other directories as requiered;
    can also be on other disks.
    e.g. /home, /SAMBA_Disk, ...

    Size as requiered

Choose Partitions to Format:

Lilo Configuration:

Network Configuration:
This option is not shown if the NIC (network interface card) is not detected during the installation-process.
In that case the instruction for 'Configure the Network Interface Card' apply after finishing the stardard-installation.

Firewall Configuration:

Language Support Selection:

Time Zone Selection:

Account Configuration:

Authentication Configuration:

Selecting Package Groups:

The following list lists only the packages to be inst

The following list comprises only those packages which have to be installed.

Select individual packages: Yes (check)

X-Configuration:

Custom Configuration:


The instructions for the standard-installation end here.
Installation-steps which have to be done manually are described in the following steps.

Define the TCP/IP-address and the symbolic Name of the Server:

Under certain circumstances the TCP-/IP-address defined during standard-installation is not put to the configuration-file /etc/hosts.
If you do not find a line starting with the chosen TCP/IP-address (192.168.0.254 in this example), please insert the missing line.
Here is an example how the configuration-file /etc/hosts should look like :
# Do not remove the following line, or various programs
# that requiere network functionality will fail
127.0.0.1       localhost.localdomain  localhost
192.168.0.254   router.g2t.office.at   router

The above example aasumes, that the TCP/IP--Hostname as described under NetBIOS- and TCP/IP-Setup of a workstation was router.g2t.office.at .

Configure the Network-Interface-Card:

The configuration of the NICs is highly dependant on the manufacturer and the type of the NIC.
If there are 2 NICs installed (1 for the internal network, 1 for the connection to an ISP over ADSL, DSL or cable-modem), then it is strongly recommended to use different types of NIC. This simplifies the identification which NIC should be connected to which cable.

Newer network-interface-cards (NIC) are detected during the standard-installation.
The following instruction have to be done only, if the NIC was not detected during standard-installation.

The NIC-driver and I/O-adddresses (if not defined by a plug&play-bios) are defined in the file /etc/modules.conf; an example follows here:

alias eth0 ne
options ne io=0x300

If the card was not detected during the installation, driver and - if the card has not a plug-and-play capability - the i/o-parameters must be assigned manually by editing the file /etc/modules.conf.
If other lines are already exist in this file they must not be deletet.
A more detailed description is given in the Linux Ethernet-Howto.

Special procedure for notebooks (pc-card).

NIC-function is available after starting pc-card-services.
For this reason, NICs can not be detected during installation but are available after a restart of Linux.
To identify the adaptors (if there are more than 1 installed), the configuration needs the io-ports of the individual adaptors. This information is written into the log during startup and can be viewed (after logon as 'root') with the command
dmesg | tail

which shows a result containing lines similar like these:
eth0: NE2000 Compatible: io 0x300, irq 3, hw_addr 00:E0:98:33:72:48
eth1: NE2000 Compatible: io 0x340, irq 5, hw_addr 00:E0:98:78:D8:B8

The underlined values are the identifiers of the pc-cards and can be used to assign TCP/IP-addresses.


Definition of the TCP/IP-addresses:

If the TCP/IP-Addresses were not already defined at the installation the can now be defined or altered with linuxconf .
After starting linuxconf please choose
Config - Networking – Client tasks – Host name and IP network devices and enter the following values:

--- Adaptor 1 ---

--- Adaptor 2 ---



Definition of the Name servers:

The TCP/IP-addresses of the Domain-Name-Servers (DNS, to resolve Internet-domain-names to IP-adresses) are configured with linuxconf, too.
Please select
Config - Networking – Client tasks –
Name server specification (DNS) and input the following values:

The IP-adresses for the name servers are provides by the internet-service-provider; the samples above are the ones for A-Online.

Check for correct setup of the network-parameters:

If the drivers for the network-interface-card are loaded correctly is shown during startup in step
'Bringing up interface eth0';
it should show the result [OK].

or
can be checked after a restart of Linux** with the following command:

modprobe eth0
dmesg | tail

That shows the last lines of the log.
Unfortunelately the messages are specific for each driver; but if the hardware-id of the NIC (e.g. 0060 97 72 b0 93) is shown - that is a good sign..

If the parameters for the TCP/IP-addresses are korrect can be checked with the following commands.

ping 192.168.0.1 (if this is not the IP-address of the server to be set up replace it with the one defined two steps before)

shows the result:

PING 192.168.0.1 (192.168.0.1) from 192.168.0.1 : 56(84) bytes of data
64 bytes from 192.168.0.1: icmp_seq=0 ttl=255 time=2.0 ms
64 bytes from 192.168.0.1: icmp_seq=1 ttl=255 time=1.3 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=255 time=1.1 ms
64 bytes from 192.168.0.1: icmp_seq=3 ttl=255 time=0.9 ms

'Pinging' can be interupted with the key-combination CTRL-C and a statistic is displayed thereafter.
An example of the display-output follows:

--- 192.168.0.1 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0.9/1.2/2.0 ms

If the computer is already connected to the internal network, then the connection can be tested by 'pinging' an already existing computer within the internal network which TCP/IP-address is known.

ping 192.168.0.2 (where the 'pinged' PC must be active and have TCP/IP services installed)

shows the result:

PING 192.168.0.2 (192.168.0.2) from 192.168.0.1 : 56(84) bytes of data
64 bytes from 192.168.0.2: icmp_seq=0 ttl=255 time=3.2 ms
64 bytes from 192.168.0.2: icmp_seq=1 ttl=255 time=1.4 ms
64 bytes from 192.168.0.2: icmp_seq=2 ttl=255 time=1.3 ms
64 bytes from 192.168.0.2: icmp_seq=3 ttl=255 time=1.3 ms
64 bytes from 192.168.0.2: icmp_seq=4 ttl=255 time=1.3 ms

'Pinging' can be interupted with the key-combination CTRL-C and a statistic is displayed thereafter.
An example of the display-output follows:

--- 192.168.0.2 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 1.3/1.7/3.2 ms

Further Tasks:

Further steps of installation of a Router with RedHat**-Linux** 7.1 are lined out in the following documents: