Over ISC-DHCP server I wanted to define a custom DHCP Option, for which I am using below config
option imagefile code 224 = ip-address;
subnet 192.168.29.0 netmask 255.255.255.0 {
range 192.168.29.1 192.168.29.244;
option imagefile 192.168.29.113;
}
I am able to restart DHCP server after above configuration.
However on client I am not able to grab this option. I am expecting to have this information in /var/db/dhclient.leases.em0
I am having a freebsd client.
I also tried to define below config in dhclinet (onclient side )
#option imagefile code 224 = ip-address ;
interface "em0" {
option imagefile code 224 = ip-address;
request imagefile;
}
However my service did not get start correctly .i.e.
Starting dhclient.
/etc/dhclient.conf line 12: expecting a statement.
option
^
/etc/dhclient.conf line 13: semicolon expected.
request
^
DHCPREQUEST on em0 to 255.255.255.255 port 67
DHCPACK from 192.168.29.113
bound to 192.168.29.234 -- renewal in 17669 seconds.
Kindly help with correct dhclient configuration or if I need to change something on isc-dhcp server to automatically get this custom option on client without defining any config on client
0 Answers