Installing gated

The gated software is part of some Linux distributions, and when it is, gated is often installed during the initial system installation. If the gated package was not installed during the initial installation, install it now. In this section, we use Red Hat Linux 7.1 as our sample system because the examples in this book are Red Hat-based, and 7.1 was the last release of Red Hat that shipped gated as its default routing software.

On a Red Hat 7.1 system, use RPM to install the software from the CD-ROM. Figure 7.4 shows the result of a gnorpm query after gated is installed.

:igure 7.4: Installing gated with gnorpm

After gated is installed, use a tool such as tksysv or chkconfig to enable it. The following example shows gated being enabled for run levels 3 and 5:

[root]# chkconfig —list gated gated 0:off 1:off 2:off 3:off 4:off 5:off 6:off [root]# chkconfig —level 35 gated on [root]# chkconfig —list gated gated 0:off 1:off 2:off 3:on 4:off 5:on 6:off

Of course, you don't have to wait for the system to reboot to run gated. On a Red Hat 7.1 system gated is started by the script /etc/init.d/gated, which can be run from the shell prompt, as follows:

[root]# service gated start

Not starting! This is not what we expected. When the script runs successfully, the message displayed is "starting gated". However, the script file will not attempt to start gated unless a gated configuration is provided. gated is configured through the /etc/gated.conf file. If we had scrolled through the list of files that Figure 7.4 shows for the gated RPM, we would have found that Red Hat does not provide a preconfigured gated.conf file. If you want to run gated, you must build your own configuration.

Was this article helpful?

0 0

Post a comment