I use Centos-7 server for assigning MAC/IP. But some times users get other IP addresses.

My dhcpd.conf


subnet netmask { range;option domain-name "dhcp.local";option routers; option broadcast-address; max-lease-time 7200;option domain-name-servers;}

include "/etc/dhcp/dhclient.d/dhcp_clients.conf";

allow booting;
allow bootp;
option option-128 code 128 = string;
option option-129 code 129 = text;
filename "pxelinux.0";

In /etc/dhcp/dhclient.d/dhcp_clients.conf I have

host User.userlaptop {hardware ethernet 00:11:22:33:44:55;fixed-address;}

What is happening here? Why it misbehaves?

Thanks in advance

  • 1
    Have you verified which MAC address the user had when he tried to get an IP address? Some users like to use MAC-changers...
    – dirkt
    Sep 21, 2018 at 10:47
  • @dirkt yes. its not an issue here. it happens without any software tools. Sep 21, 2018 at 11:43
  • 1
    Next step is to reproduce it, while listening with wireshark or dhcpdump. dhcping may also help. "Sometimes", "without any software tools" is a bit vague.
    – dirkt
    Sep 21, 2018 at 11:49


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.