huaqingyuan 发表于 2015-10-15 16:32:21

关于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 *****

huaqingyuan 发表于 2015-10-15 16:38:50

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;

notepad 发表于 2015-10-15 19:49:21

这个得关心关心,感谢分享!

假大空 发表于 2015-10-18 20:54:41

学习下。

cfgs 发表于 2015-10-21 08:41:17

非常感谢楼主的分享!谢谢

zhaohj 发表于 2015-11-19 11:42:24

本帖最后由 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中怎么设置?

201287zr 发表于 2016-1-7 08:32:51

老大能否再详细说明下,英文不好啊,具体在tinypxe中怎么实现?每条代码是什么意思,排列成的一串数据是按什么方式组合的,可否多举几例说明下具体实现的功能?

mougua783 发表于 2016-4-23 07:54:09

这么强,支持楼主,佩服

huaqingyuan 发表于 2017-3-9 21:49:42

远景论坛关闭了,好可惜。希望无忧能长久,就像今天我就忘了以前发的资料,上来查看

yijingmo 发表于 2018-3-20 15:33:59

{:1_186:}学习~~~~

wplin 发表于 2018-3-20 19:29:25

進來學習
感謝大大提供學習資源

syppl 发表于 2018-7-14 09:01:54

不错,谢谢分享

p8276625 发表于 2018-7-18 16:49:42

qiangtie_zhidexuexi,huifuhoukankandaanzhihuoxuexiyixia.

liuyangaifox 发表于 2018-7-21 18:20:55

看看隐藏内容

自由航 发表于 2018-8-9 20:57:23

学习一下。。

a00169 发表于 2018-8-14 18:05:25

学习学习啊............

cheneytac 发表于 2018-8-24 13:28:48

我在想能否搞到hanewin dhcp里

papago 发表于 2018-10-20 23:37:30

不明觉厉,学习一下

rabbired 发表于 2018-11-26 12:53:27

这个得关心关心,感谢分享!

key0327 发表于 2018-11-26 16:10:24

用法呢?

未完成的歌 发表于 2018-11-26 17:02:17

绝世好文,不得不顶

mxso 发表于 2018-11-30 15:57:22

我也想知道{:1_191:}

rose4cat 发表于 2018-12-2 11:07:44

cc150 发表于 2019-3-10 23:39:20

gan xie feng xiang

bihaitian 发表于 2019-3-20 01:08:41

老的东东才是最实用的

xingwuzhe 发表于 2019-3-20 01:35:28

谢谢 学习了

缠水 发表于 2019-3-24 09:31:48

谢谢你来了

ziyi520 发表于 2019-3-27 04:27:21

看看明白明白

熄灭的烟 发表于 2019-3-27 16:28:50

这个得关心关心,感谢分享!

anxiang 发表于 2019-3-28 06:07:42

这个要学习学习
页: [1] 2 3 4
查看完整版本: 关于IPXE的DHCP选项,设置keep-san,no-pxedhcp等