Custom Option 43 configuration
I need to generate a custom Option 43 value. First byte is always "f2", second should be either "05" if only one IP address is specified, or "09" if two addresses are specified in the array. And custom fixed suffix "01" should be added at the end
Final string should be: f2090a0a0a0a0a14141401
I got close, but I don't know how to increase the second byte from "08" to "09" and add the "01" suffix. Is this possible?
Option: (43) Vendor-Specific Information
Length: 10
Value: f2080a0a0a0a0a141414
Option: (255) End
Padding: 00000000000000000000
My configuration
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;
}