????3.2??????????
????1??????dhcp??????
????????PXE????????????δ???????????????????????????????????????????????????????????ú?DHCP?????????????????????????????λ?á?
[root@localhost /]#yum -y install dhcp
[root@localhost /]#vim /etc/dhcp/dhcp.conf
ddns-update-style none;
default-lease-time 21600;
max-lease-time 43200;
option domain-name         "benet.com";
option domain-name-servers 8.8.8.8;
subnet 192.168.122.0 netmask 255.255.255.0 {
option routers 192.168.122.1;
option subnet-mask 255.255.255.0;
range 192.168.122.100 192.168.122.200;
next-server 192.168.122.1;   #???TFTP??????????
filename "pxelinux.0";     #???PXE??????????????
}
[root@localhost /]#service dhcpd start
?????????filename???????????????????????????bootstrap?????λ??????????????TFTP?????????????????????????·????????·????????????????????????С?
????2??????tftp??????
????TFTP??????????????/etc/xinetd.d/tftp??RedHat9 ??????????????????
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
}
??????????????????????????????????????????server_args= -s /tftpboot????У???????????/tftpboot???root??????????dhcpd.conf?е?filename??????дbootstrap?????·??: filename “pxelinux.0”??????????????濼???.??????????-s????????????????filename??????bootstrap??·??: filename “/tftpboot/pxelinux.0”?????????-s?????????????а????????????????????????
????3.3???????????
????Bootstrap??????????簲??????????Bootstrap?????????????????????????????????????centos??bootstrap??cdrom??/isolinux/pxelinux.0????????????????tftpboot?£?
????3.4?????????????
??????centos?????????????images/pxeboot???μ?initr.img??vmlinux?????tftpboot/???????/tftpboot????pxelinux.cfg?????????isolinux???????????????isolinux/???????isolinux.cfg???????????????/tftpboot/pxelinux.cfg/???2??????default.??????????default?????
????default linux
????prompt 1
????timeout 30
????label linux
????kernel vmlinuz
????append initrd=initrd.img
???????Default ?????????????????????????????????????
????3.5??????
????1?????????????????????????????????????????????????bios?????????????
????2????μ??????????????