![](https://csdnimg.cn/release/download_crawler_static/10465474/bg5.jpg)
Manual For Establishing PXE Server based on RH6
- 5 -
Foxconn Confidential CESBG Server Design Center
option PXE.mtftp-ip code 1 = ip-address;
option PXE.mtftp-cport code 2 = unsigned integer 16;
option PXE.mtftp-sport code 3 = unsigned integer 16;
option PXE.mtftp-tmout code 4 = unsigned integer 8;
option PXE.mtftp-delay code 5 = unsigned integer 8;
option PXE.discovery-control code 6 = unsigned integer 8;
option PXE.discovery-mcast-addr code 7 = ip-address;
ddns-update-style interim;
ignore client-updates;
allow booting;
allow bootp;
class "pxeclients" {
match if substring (option vendor-class-identifier,0,9)="PXEClient";
vendor-option-space PXE;
option PXE.mtftp-ip 0.0.0.0;
filename "pxelinux.0";
}
subnet 192.168.49.0 netmask 255.255.255.0 {
DHCPDARGS=eth0;
option routers 192.168.49.1;
option broadcast-address 192.168.49.255;
option subnet-mask 255.255.255.0;
option nis-domain "domain.org";
option domain-name "domain.org";
option time-offset -18000; # Eastern Standard Time
range dynamic-bootp 192.168.49.10 192.168.49.252;
default-lease-time 3000;
max-lease-time 6000;
}
EOF
紅色的那行事指定 eth0 網卡做 DHCP 的服務,其他 PXE Server 網卡不受理客戶機的 DHCP 請求。