Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a quick question. Is it possible to make ISC dhcpd server insert the option 61 (client id) in DHCPOFFER, in case if it is present in DHCPDISCOVER? The ISC dhcpd version I'm using is dhcp-4.1.1 (dhcp-4.1.1-12.P1.el6_0.4.x86_64 CentOS rpm).

Thanks in advance

share|improve this question
add comment

1 Answer

Yes, you can set options based on conditional statements in the ISC dhcpd server. Specifically you can test if the dhcp-client-identifier option is present in the incoming DHCP packet, and if it is set the option for the response packet to the incoming value by this expression:

   
# other options in scope ...
if exists dhcp-client-identifier {
  option dhcp-client-identifier = option dhcp-client-identifier;
}
# other options in scope ...

The left side of the = sets the server parameter name, the right side data expression will return the contents of the parameter name from the client packet.

For more info see man dhcp-eval and the SETTING PARAMETER VALUES USING EXPRESSIONS section at the bottom of man dhcp.conf

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.