1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | option domain-name "mydomain"; ddns-update-style none; max-lease-time 7200; server-name "bootserver"; default-lease-time 600; allow booting; allow bootp; subnet 192.168.138.0 netmask 255.255.255.0 { range 192.168.138.1 192.168.138.254; deny unknown-clients; } group pxe { filename "pxelinux.0"; host testserver { hardware ethernet 00:0C:29:70:24:5B; fixed-address 192.168.138.30; } } |
1 | [root@bsvr] #service dhcpd restart |
1 2 3 4 5 6 7 8 9 10 | service tftp { socket_type = dgram protocol = udp wait = yes user = root server = /usr/sbin/in.tftpd server_args = -s /tftpboot disable = no } |
1 2 3 4 5 6 | [root@bsvr]#mkdir /mnt/iso [root@bsvr]#mount -o loop,ro RHEL4-U2-i386-AS-disc1.iso /mnt/iso [root@bsvr]#cp /mnt/iso/isolinux/initrd.img /tftpboot [root@bsvr]#cp /mnt/iso/isolinux/vmlinuz /tftpboot [root@bsvr]#mv /tftpboot/initrd.img /tftpboot/initrd-rhel4u2-i386.img [root@bsvr]#mv /tftpboot/vmlinuz /tftpboot/vmlinuz-rhel4u2-i386 |
1 | [root@bsvr]#cp /usr/lib/syslinux/pxelinux.0 /tftpboot/ |
1 | C0A88A1E > C0A88A1 > … > C0 > C > default |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | DEFAULT rhel4u2-i386 DISPLAY pxelinux.cfg/list PROMPT 1 LABEL rhel3u6-i386 KERNEL vmlinuz-rhel3u6-i386 APPEND initrd=initrd-rhel3u6-i386.img LABEL rhel3u6-x86_64 KERNEL vmlinuz-rhel3u6-x86_64 APPEND initrd=initrd-rhel3u6-x86_64.img devfs=nomount ramdisk_size=9216 LABEL rhel4u2-i386 KERNEL vmlinuz-rhel4u2-i386 APPEND initrd=initrd-rhel4u2-i386.img ramdisk_size=8192 |
1 2 3 4 5 6 | Choose one of the following Linux distributions for your installation: Name Distribution Arch. Installation media ------------------------------------------------------------------------- rhel3u6-i386 RHEL 3 AS U6 i386 192.168.138.1:/instsvr/i386/rhel3u6 rhel3u6-x86_64 RHEL 3 AS U6 x86_64 192.168.138.1:/instsvr/x86_64/rhel3u6 rhel4u2-i386 RHEL 4 AS U2 i386 192.168.138.1:/instsvr/i386/rhel4u2 |
1 | [root@bsvr]#service xinetd restart |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |