关于IPXE的DHCP选项,设置keep-san,no-pxedhcp等
本帖最后由 huaqingyuan 于 2015-10-31 09:08 编辑IPXE的DHCP选项,严格来说就是对175选项的设置。
以Tiny PXE Server为列子
175.6.8.1.1.176.1.1
解释一下,175,选项
6,长度
8.1.1,IPXE选项8,长度1,值1,也就是设置keep-san=1
176.1.1,IPXE选项176,长度1,值1,也就是设置no-pxedhcp=1
**** Hidden Message ***** IPXE的很多设置,都能在DHCP下面定义,可以参考下面的文本。
option space ipxe;
option ipxe-encap-opts code 175 = encapsulate ipxe;
option ipxe.priority code 1 = signed integer 8;
option ipxe.keep-san code 8 = unsigned integer 8;
option ipxe.skip-san-boot code 9 = unsigned integer 8;
option ipxe.syslogs code 85 = string;
option ipxe.cert code 91 = string;
option ipxe.privkey code 92 = string;
option ipxe.crosscert code 93 = string;
option ipxe.no-pxedhcp code 176 = unsigned integer 8;
option ipxe.bus-id code 177 = string;
option ipxe.bios-drive code 189 = unsigned integer 8;
option ipxe.username code 190 = string;
option ipxe.password code 191 = string;
option ipxe.reverse-username code 192 = string;
option ipxe.reverse-password code 193 = string;
option ipxe.version code 235 = string;
option iscsi-initiator-iqn code 203 = string;
# Feature indicators
option ipxe.pxeext code 16 = unsigned integer 8;
option ipxe.iscsi code 17 = unsigned integer 8;
option ipxe.aoe code 18 = unsigned integer 8;
option ipxe.http code 19 = unsigned integer 8;
option ipxe.https code 20 = unsigned integer 8;
option ipxe.tftp code 21 = unsigned integer 8;
option ipxe.ftp code 22 = unsigned integer 8;
option ipxe.dns code 23 = unsigned integer 8;
option ipxe.bzimage code 24 = unsigned integer 8;
option ipxe.multiboot code 25 = unsigned integer 8;
option ipxe.slam code 26 = unsigned integer 8;
option ipxe.srp code 27 = unsigned integer 8;
option ipxe.nbi code 32 = unsigned integer 8;
option ipxe.pxe code 33 = unsigned integer 8;
option ipxe.elf code 34 = unsigned integer 8;
option ipxe.comboot code 35 = unsigned integer 8;
option ipxe.efi code 36 = unsigned integer 8;
option ipxe.fcoe code 37 = unsigned integer 8;
option ipxe.vlan code 38 = unsigned integer 8;
option ipxe.menu code 39 = unsigned integer 8;
option ipxe.sdi code 40 = unsigned integer 8;
option ipxe.nfs code 41 = unsigned integer 8; 这个得关心关心,感谢分享! 学习下。 非常感谢楼主的分享!谢谢 本帖最后由 zhaohj 于 2015-11-19 11:44 编辑
Configuring the DHCP server
A chain
You must configure your DHCP server to check for a UEFI HTTP Boot client, and to provide the string HTTPClient as the vendor class identifier, and an HTTP URI as the boot filename. If you are using ISC dhcpd then you need to edit /etc/dhcpd.conf to contain
if option client-architecture = encode-int ( 16, 16 ) {
option vendor-class-identifier "HTTPClient";
filename "http://my.web.server/ipxe.efi";
} else {
filename "http://my.web.server/script.ipxe";
}
where my.web.server is the DNS name (or IP address) of your web server.
==========================
参见:http://ipxe.org/appnote/uefihttp
问老大,这段话在ms的dhcp中怎么设置?
老大能否再详细说明下,英文不好啊,具体在tinypxe中怎么实现?每条代码是什么意思,排列成的一串数据是按什么方式组合的,可否多举几例说明下具体实现的功能? 这么强,支持楼主,佩服 远景论坛关闭了,好可惜。希望无忧能长久,就像今天我就忘了以前发的资料,上来查看 {:1_186:}学习~~~~ 進來學習
感謝大大提供學習資源 不错,谢谢分享 qiangtie_zhidexuexi,huifuhoukankandaanzhihuoxuexiyixia. 看看隐藏内容 学习一下。。 学习学习啊............ 我在想能否搞到hanewin dhcp里 不明觉厉,学习一下 这个得关心关心,感谢分享! 用法呢? 绝世好文,不得不顶 我也想知道{:1_191:} gan xie feng xiang 老的东东才是最实用的 谢谢 学习了 谢谢你来了 看看明白明白 这个得关心关心,感谢分享! 这个要学习学习