/build/static/layout/Breadcrumb_cap_w.png

How to configure DHCP ISC for K2000 usage

if you are using the ISC DHCP Server in your environment and you want to use the K2000 you will need to use a configuration similar to this one.

In this configuration I defined a new option called kace-k2000 that then I'll use in the subnet declaration

In the following example
My network is 192.168.132/24, my DNS is 192.168.132.3, my default gateway 192.168.132.3 and my K2000 has the IP 192.168.132.5

The DHCP Server in this example assigns addresses in the range 192.168.132.220 to 192.168.132.230.

The options in red are the important ones if you need to configure the DHCP Server to be used with a K2000.

 
#
# Sample configuration file for ISC dhcpd for Debian
#
# option definitions common to all supported networks...

option domain-name "mydomain.local";

#your DNS server
option domain-name-servers 192.168.132.3;
#I create here the custom option for KACE
option kace-k2000 code 244 = ip-address;
default-lease-time 600;
max-lease-time 7200;

 
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;

 

# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;
# This is a very basic subnet declaration.

 subnet 192.168.132.0 netmask 255.255.255.0 {
 range 192.168.132.220 192.168.132.230;
  option routers 192.168.132.3;
  option domain-name-servers 192.168.132.3;
  option bootfile-name "kbox2000.0";   next-server 192.168.132.5;   option kace-k2000 192.168.132.5;

}

Someone may argue why I'm using the next-server parameter and not the option 66 (that in the syntax of DHCP ISC is called tftp-server-name): simply because this is not working.

It is not a fault of the DHCP ISC Server but a ''cheat'' of Microsoft Windows DHCP: analyzing the DHCK ACK packets with Wireshark I found out that when we specify in the Microsoft DHCP the scope option 66 this option is not offered at all but is 'translated' in a "Next Server" field.

So if you try to mimic perfectly Windows consider that the scope option 66 is not offered at all (at least in Windows 2008 Server) and insted the field Next Server is valorized so you will need to use the next-server statement in your dhcpd.conf file.

This is the DHCP ACK packet and as you can see the option 66 is not offered Cool

 

 


Comments

This post is locked

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ