I. Installing DHCP TFTP VSFTPD system-config-kickstart packages using Yum
1. Install the related software package
#yum-y install tftp DHCP vsftpd System-config-kickstart
Two. Configure the DHCPD service
Cp/usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample/etc/dhcpd.conf
#vim/etc/dhcpd.conf content is as follows, of course, can be flexibly modified according to their own needs
Ddns-update-style Interim;
Ignore client-updates; Subnet 192.168.126.0 netmask 255.255.255.0 {#---Default gateway option routers 192.1
68.126.254;//router IP, can write gateway IP option subnet-mask 255.255.255.0;
# option Nis-domain "domain.org";
# option Domain-name "domain.org"; # option domain-name-servers 192.168.1.1;//dns server IP next-server 192.168.126
.50;//server IP address. FileName "pxelinux.0"//pxe get IP after the boot file option time-offset-18000;
# Eastern Standard Time # option Ntp-servers 192.168.1.1;
# option Netbios-name-servers 192.168.1.1; #---Selects point-to-point node (default is hybrid).
Don ' t change this unless #--Your understand Netbios very # option Netbios-node-type 2; Range DynamIC-BOOTP 192.168.126.128 192.168.126.254;//IP address pool range.
Default-lease-time 21600;
Max-lease-time 43200;
# Next-server marvin.redhat.com; # We want the nameserver to appear in a fixed address host ns {Next-server Marvin.redha
t.com;
Hardware Ethernet 12:34:56:78:AB:CD;
Fixed-address 207.175.42.254; }
}
Three. Configure the TFTP service
1. Edit/etc/xinetd.d/tftp File
#vim/etc/xinetd.d/tftp content follows service tftp
{
Socket_type = dgram
protocol = UDP
Wait = yes
user = root
Server =/usr/sbin/in.tftpd
Server_args =-s/tftpboot
Disable = no
per_source = one
cps = 2
Flags = IPv4
}