无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
查看: 44572|回复: 104

[原创] 关于IPXE的DHCP选项,设置keep-san,no-pxedhcp等

  [复制链接]
发表于 2015-10-15 16:32:21 | 显示全部楼层 |阅读模式
本帖最后由 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

游客,如果您要查看本帖隐藏内容请回复
 楼主| 发表于 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;
回复

使用道具 举报

发表于 2015-10-15 19:49:21 | 显示全部楼层
这个得关心关心,感谢分享!
回复

使用道具 举报

发表于 2015-10-18 20:54:41 | 显示全部楼层
学习下。
回复

使用道具 举报

发表于 2015-10-21 08:41:17 | 显示全部楼层
非常感谢楼主的分享!谢谢
回复

使用道具 举报

发表于 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中怎么设置?
回复

使用道具 举报

发表于 2016-1-7 08:32:51 来自手机 | 显示全部楼层
老大能否再详细说明下,英文不好啊,具体在tinypxe中怎么实现?每条代码是什么意思,排列成的一串数据是按什么方式组合的,可否多举几例说明下具体实现的功能?
回复

使用道具 举报

发表于 2016-4-23 07:54:09 | 显示全部楼层
这么强,支持楼主,佩服
回复

使用道具 举报

 楼主| 发表于 2017-3-9 21:49:42 来自手机 | 显示全部楼层
远景论坛关闭了,好可惜。希望无忧能长久,就像今天我就忘了以前发的资料,上来查看
回复

使用道具 举报

发表于 2018-3-20 15:33:59 | 显示全部楼层
学习~~~~
回复

使用道具 举报

发表于 2018-3-20 19:29:25 | 显示全部楼层
進來學習
感謝大大提供學習資源
回复

使用道具 举报

发表于 2018-7-14 09:01:54 | 显示全部楼层
不错,谢谢分享
回复

使用道具 举报

发表于 2018-7-18 16:49:42 | 显示全部楼层
qiangtie_zhidexuexi,huifuhoukankandaanzhihuoxuexiyixia.
回复

使用道具 举报

发表于 2018-7-21 18:20:55 | 显示全部楼层
看看隐藏内容
回复

使用道具 举报

发表于 2018-8-9 20:57:23 | 显示全部楼层
学习一下。。
回复

使用道具 举报

发表于 2018-8-14 18:05:25 | 显示全部楼层
学习学习啊............
回复

使用道具 举报

发表于 2018-8-24 13:28:48 | 显示全部楼层
我在想能否搞到hanewin dhcp里
回复

使用道具 举报

发表于 2018-10-20 23:37:30 来自手机 | 显示全部楼层
不明觉厉,学习一下
回复

使用道具 举报

发表于 2018-11-26 12:53:27 | 显示全部楼层
这个得关心关心,感谢分享!
回复

使用道具 举报

发表于 2018-11-26 16:10:24 | 显示全部楼层
用法呢?
回复

使用道具 举报

发表于 2018-11-26 17:02:17 | 显示全部楼层
绝世好文,不得不顶
回复

使用道具 举报

发表于 2018-11-30 15:57:22 | 显示全部楼层
我也想知道
回复

使用道具 举报

发表于 2018-12-2 11:07:44 | 显示全部楼层
关于IPXE的DHCP选项,设置keep-san,no-pxedhcp等 [
回复

使用道具 举报

发表于 2019-3-10 23:39:20 | 显示全部楼层
gan xie feng xiang
回复

使用道具 举报

发表于 2019-3-20 01:08:41 | 显示全部楼层
老的东东才是最实用的
回复

使用道具 举报

发表于 2019-3-20 01:35:28 | 显示全部楼层
谢谢 学习了
回复

使用道具 举报

发表于 2019-3-24 09:31:48 来自手机 | 显示全部楼层
谢谢你来了
回复

使用道具 举报

发表于 2019-3-27 04:27:21 | 显示全部楼层
看看明白明白
回复

使用道具 举报

发表于 2019-3-27 16:28:50 | 显示全部楼层
这个得关心关心,感谢分享!
回复

使用道具 举报

发表于 2019-3-28 06:07:42 | 显示全部楼层
这个要学习学习
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-3-29 07:17

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表