Tftp server, Centos tftp setup – HP Virtual Connect 4Gb Fibre Channel Module for c-Class BladeSystem User Manual

Page 280

Advertising
background image

Appendix B: Auto-deployment process 280

option bootfile-name “myconfig-1.script”

hardware ethernet 00:02:c3:d0:e5:83;

fixed-address 192.168.1.100;

}

host enclosure2 {

option tftp-server-name “192.168.1.3”;

option bootfile-name “myconfig-2.script”

hardware ethernet 00:02:c3:d0:e5:84;

fixed-address 192.168.1.101;

}

}

After you have completed customizing your DHCP configuration file, start the DHCP service by entering the

following prompt:

>service dhcpd start

TFTP server

The TFTP server setup includes basic configuration settings, including the tftp root directory permissions and

uploading of configuration files.

CentOS TFTP setup

To set up the TFTP server on CentOS or RHEL, ensure the proper TFTP server package is installed on the

server:

>yum install tftp-server

After the proper package is installed, edit the TFTP configuration file to ensure proper setup. The following
configuration file has configured the /tftpboot directory to be the root of the TFTP server used for

deployment.
Example
/etc/xinetd.d/tftp

service tftp

{

disable = no

socket_type = dgram

protocol = udp

wait = yes

user = root

server = /usr/sbin/in.tftpd

server_args = -s /tftpboot

per_source = 11

cps = 100 2

flags = IPv4

}

The tftpboot directory also needs permissions to be modified to allow tftp client access:

>chown -R nobody:nobody /tftpboot/

>chmod 777 /tftpboot/

Start the xinetd service:

>service xinetd start

After the TFTP server is set up, you can copy the VC configuration files to be used for deployment to the
tftpboot directory:

>cp myconfig-1.script /tftpboot

Advertising