ISC DHCP 服务器 - 将“01”附加到选项 43 的末尾

ISC DHCP 服务器 - 将“01”附加到选项 43 的末尾

我当前的选项 43 在 DHCP Offer 中生成此十六进制值。请参阅下面我当前的配置。

f2080a0a0a0a0a141414

我需要在其末尾添加“01”,并将长度从“08”增加到“09”。最终的十六进制应如下所示:

f2090a0a0a0a0a14141401

当前配置:

option space Cisco_LWAPP_AP;
option Cisco_LWAPP_AP.server-address code 242 = array of ip-address;

# eth0 DHCP scope
subnet 192.168.73.0 netmask 255.255.255.0 {
interface eth0;
range 192.168.73.100 192.168.73.200;
option routers 192.168.73.1;
option domain-name-servers 208.67.222.222, 1.1.1.1;
default-lease-time 86400;
max-lease-time 86400;
vendor-option-space Cisco_LWAPP_AP;
option Cisco_LWAPP_AP.server-address 10.10.10.10, 10.20.20.20;
}


这是使用供应商封装选项的解决方案,它允许您直接以十六进制输入值:

# eth0 DHCP scope on ISC DHCP server
subnet 192.168.130.0 netmask 255.255.255.0 {
interface eth0;
range 192.168.130.100 192.168.130.200;
option routers 192.168.130.1;
option domain-name-servers 208.67.222.222, 1.1.1.1;
default-lease-time 86400;
max-lease-time 86400;
option vendor-encapsulated-options f2:09:0a:0a:0a:0a:0a:14:14:14:01;
}

相关内容