下面Linux PXE是我在VirtualBox上RHEL6系统上配置的。
1.配置Linux DHCP Server
以下是dhcpd.conf配置文件:这里只是简单给出必须的配置项。
ddns-update-style interim;
ignore client-updates;
allow booting;
allow bootp;
class "pxeclients" {
match if substring(option vendor-class-identifier, 0, 9) = "PXEClient";
next-server 192.168.56.254;
filename "pxeboot.0";
}
subnet 192.168.56.0 netmask 255.255.255.0 {
option routers 192.168.56.1;
range dynamic-bootp 192.168.56.10 192.168.56.250;
default-lease-time 600;
max-lease-time 7200;
}
下图是我的DHCP配置文件内容:红色方框中的参数是必须的,一个都不能少。

