beautypg.com

Populating the tftp directory share, Setting up a dhcp server – HP SmartStart-Software User Manual

Page 13

background image

Advanced topics 13

# trivial file transfer protocol. The tftp protocol is \

# often used to boot diskless workstations, download \

# configuration files to network-aware printers and to \

# start the installation process for some operating systems.

service tftp

{

socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = yes
per_source = 11
cps = 100 2

}

In this example, "disabled" is the default setting, and /tftpboot is the root directory for all client access.
To enable the TFTP service on your server, edit the disable line to read:

disable = no

Populating the TFTP directory share

Use the /tftpboot directory from the "Setting up a TFTP server (on page

12

)" section as the directory from

which TFTP clients will get their files. To populate the TFTP directory share:

1.

Create a /tftpboot directory, if needed.

2.

Copy the necessary boot files to the /tftpboot directory:

o

pxelinux.0 (the SYSLINUX binary used for PXE boot)

o

initrd.img (the Linux file system)

o

vmlinuz (the Linux kernel)

3.

Create a pxelinux configuration file subdirectory called /tftpboot/pxelinux.cfg.

4.

Copy the default file (the boot configuration used by pxelinux.0) into the /tftpboot/pxelinux.cfg/
directory.

The tftpboot directory should now contain the following items:

/tftpboot/pxelinux.0

/tftpboot/initrd.img

/tftpboot/vmlinuz

/tftpboot/pxelinux.cfg/default

Setting up a DHCP server

To set up a DHCP server, create and edit a dhcpd.conf file in the /etc directory of your server. The
following is a sample dhcpd.conf file:

allow booting;

allow bootp;

ddns-update-style interim;

[You must customize the file by inserting the appropriate DHCP directives, IP ranges, subnet masks, and
so on here.]

This manual is related to the following products: