Assigning a Fixed IP Address Based on dhcp-client-identifier

Scott Coleman swarga.research at
Wed May 20 16:08:42 UTC 2009

I finally got it to work.

The solution was to remove the "option dhcp-client-identifier" lines
from the host records and replace them with equivalent "uid"
statements (the byte lists after the uid keyword are the hex
equivalents of the ASCII strings "pos_30", "pos_31", etc. with a
prepended 0x00 byte which some clients, including mine, insist on
including for some reason).

I'm attaching the complete dhcpd.conf file for the archives. Thanks to
everyone who responded for their help!

# DHCP Server Configuration file.
not authoritative;
ddns-update-style none;
default-lease-time 86400;
max-lease-time 172800;
boot-unknown-clients false;

class "test"
  match pick-first-value (option dhcp-client-identifier, hardware);

subnet netmask
    allow members of "test";
    option routers;
    option domain-name-servers;
    deny unknown-clients;

host pos_30
  option host-name "pos_30";
  uid 00:70:6f:73:5f:33:30;

host pos_31
  option host-name "pos_31";
  uid 00:70:6f:73:5f:33:31;

More information about the dhcp-users mailing list