我目前的選項 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;
}