服务器 Gind.cn

服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器

Linux DHCP服务器选项43 vendor-encapsulated-options,如何格式化/编码?

我pipe理一个小型企业的networking,它有一个为networking(和其他各种服务)提供DHCP服务的IPCop防火墙。 IPCop中的DHCP服务器似乎是dhcpd,IPCop提供了一个基于Web的前端来编辑configuration文件。 我正在寻找使用vendor-encapsulated-options选项将DHCP选项66和67的特定值发送到特定的供应商类别标识符。 目的是自动configuration一些支持DHCP选项66/67和43/60的VoIP电话。 我已经设法得到选项66 tftp-server-name和67 bootfile-name工作自动configuration电话。 但是,这些选项当然是全局的,并发送给所有的DHCP客户端。 我正在尝试使用vendor-class-identifier和vendor-encapsulated-options DHCP选项来将自动configuration信息仅发送给手机。 我意识到这可能是一个小型企业networking矫枉过正,但这是所有扩大我的知识。 所以我开始阅读一些信息,我只是不能解决如何在供应商封装的选项string中编码选项66/67。 这里是相关的RFC … http://tools.ietf.org/html/rfc2132#section-8 8.4节这里是dhcpd的手册页http://www.daemon-systems.org/man/dhcp-options .5.html下的“供应商封装选项” 这些文件似乎表明,选项将被编码为hex格式,然而看看供应商封装选项的手册页示例… The value of this option can be set in one of two ways. The first way is to simply specify the data directly, using a text string or a colon-separated list of hexadecimal values. For example: option […]