pxe???簲??????? ????????????
???????????? ???????[ 2013/10/12 9:37:42 ] ????????
????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????μ??????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11