iKuai爱快流控路由

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 503|回复: 3
打印 上一主题 下一主题

[网络设置] 希望爱快的DHCP服务器的Option60和Option67可以配合起来

[复制链接]
跳转到指定楼层
楼主
发表于 2023-9-29 16:50:18 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
需求建议
目前版本: 免费版 3.7.6 x64 Build202309081651
使用环境: 企业事业单位 
需求程度: 一般程度
联系方式(仅官方人员可见): 您无权查看此信息
类似功能截图: -
希望爱快的DHCP服务器的Option60和Option67可以配合起来,能够根据客户端DHCP报文中的信息来告诉客户端不同的启动文件名。比如,如果客户端是Legacy BIOS模式,则bootfile的值需为 undionly.kpxe, 如果是UEFI模式,则bootfile的值需为 boot.kpxe 等,现在使用爱快,需要我手动指定,75:6e:64:69:6f:6e:6c:79:2e:6b:70:78:65或者62:6f:6f:74:2e:6b:70:78:65,在局域网中同时存在UEFI和BIOS启动的场景不能兼得。
希望可以像在Linux下的DHCP服务一样:



subnet 10.0.0.0 netmask 255.255.255.0 {
    option routers 10.0.0.254;
    range 10.0.0.2 10.0.0.253;


    class "pxeclients" {
        match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
        next-server 10.0.0.1;


        if option architecture-type = 00:07 {
            filename "boot.kpxe";
        } else {
            filename "undionly.kpxe";
        }
    }
}



Windows下也可以










本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
沙发
发表于 2023-10-4 20:38:25 | 只看该作者
支持支持
板凳
发表于 2023-11-10 02:45:42 | 只看该作者
UEFI
If you have machines which attempt to perform a UEFI network boot, then download http://boot.ipxe.org/ipxe.efi and save it to your TFTP server directory.

You will need to configure your DHCP server to hand out undionly.kpxe as the boot file to BIOS machines and ipxe.efi as the boot file to UEFI machines. If you are using ISC dhcpd then edit /etc/dhcpd.conf to contain

  option client-arch code 93 = unsigned integer 16;
  if option client-arch != 00:00 {
     filename "ipxe.efi";
  } else {
     filename "undionly.kpxe";
  }
  next-server X.X.X.X;
where X.X.X.X is the IP address of your TFTP server.

Note that UEFI network booting tends to be substantially slower than BIOS network booting, due to fundamental architectural limitations in UEFI. Most UEFI systems provide the ability to perform a network boot in a BIOS compatibility mode. You may wish to upgrade your system to use BIOS mode for network booting.
地板
发表于 2023-11-10 02:49:19 | 只看该作者
其实需求的描述很简单:根据DHCP的请求信息,判断如果是legacy,我们就指定一个legacy支持的引导文件,如果是UEFI,就指定一个EFI支持的引导文件,避免服务器需要人工切换名字。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐上一条 /2 下一条

QQ|小黑屋|手机版|Archiver|论坛规章制度|iKuai Inc. ( 京ICP备13042604号 )

GMT+8, 2024-6-14 09:41

Powered by Discuz! X3.3

© 2001-2024 Comsenz Inc.

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