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

Scott Coleman swarga.research at gmail.com
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 10.24.0.0 netmask 255.255.0.0
{
  pool
  {
    allow members of "test";
    option routers 10.24.7.1;
    option domain-name-servers 10.24.7.1;
    range 10.24.7.100 10.24.7.254;
    deny unknown-clients;
  }
}

host pos_30
{
  option host-name "pos_30";
  uid 00:70:6f:73:5f:33:30;
  fixed-address 10.24.7.30;
}

host pos_31
{
  option host-name "pos_31";
  uid 00:70:6f:73:5f:33:31;
  fixed-address 10.24.7.31;
}



More information about the dhcp-users mailing list