Enable tftp on red hat linux 6.2, Enable tftp on red hat linux 7 (or newer), Enable bootp/dhcp server on red hat linux – Comtrol eCos User Manual

Page 111

Advertising
background image

Chapter 1. Getting Started with RedBoot

dynamic IP address allocation, using BOOTP

TFTP service for file downloading

DNS server for hostname lookups

Depending on the host system, these services may or may not be available or enabled by default. See your system
documentation for more details.

In particular, on Red Hat Linux, neither of these services will be configured out of the box. The following will
provide a limited explanation of how to set them up. These configuration setups must be done as

root

on the host

or server machine.

Enable TFTP on Red Hat Linux 6.2

1.

Ensure that you have the tftp-server RPM package installed. By default, this installs the TFTP server in a
disabled state. These steps will enable it:

2.

Make sure that the following line is uncommented in the control file

/etc/inetd.conf

tftp dgram

udp

wait

root

/usr/sbin/tcpd

/usr/sbin/in.tftpd

3.

If it was necessary to change the line in Step 2, then the inetd server must be restarted, which can be done via
the command:

# service inet reload

Enable TFTP on Red Hat Linux 7 (or newer)

1.

Ensure that the xinetd RPM is installed.

2.

Ensure that the tftp-server RPM is installed.

3.

Enable TFTP by means of the following:

/sbin/chkconfig tftp on

Reload the xinetd configuration using the command:

/sbin/service xinetd reload

Create the directory /tftpboot using the command

mkdir /tftpboot

NOTE: Under Red Hat 7 you must address files by absolute pathnames, for example:

/tftpboot/boot.img

not

/boot.img

, as you may have done with other implementations. On systems newer than Red Hat 7 (7.1 and

beyond), filenames are once again relative to the

/tftpboot

directory.

7

Advertising