dhcp server gives same address to two machines

Solution Verified - Updated -

Issue

  • Problem with the DHCP server on an RHEL7 machine that gives the same address to two different clients.
  • Problem with the DHCP server on an RHEL8 machine that gives the same address to two different clients.
  • DHCP gives duplicate or same IP addresses to two different machine
  • DHCP gives duplicate or same IP addresses to three different machine
  • DHCP gives duplicate or same IP addresses to the systemd-networked dhcp client

  • Reproducer using a test RHEL8 DHCP server and Ubuntu-20.04 with systemd-networkd

Template VM:
Jan 28 16:24:58 rhel7-c1 dhcpd: DHCPDISCOVER from 08:00:27:3c:bc:fa (test-vm) via eth0
Jan 28 16:24:59 rhel7-c1 dhcpd: DHCPOFFER on 192.168.5.151 to 08:00:27:3c:bc:fa (test-vm) via eth0
Jan 28 16:24:59 rhel7-c1 dhcpd: DHCPREQUEST for 192.168.5.151 (192.168.5.7) from 08:00:27:3c:bc:fa (test-vm) via eth0
Jan 28 16:24:59 rhel7-c1 dhcpd: DHCPACK on 192.168.5.151 to 08:00:27:3c:bc:fa (test-vm) via eth0

Jan 28 16:28:29 rhel7-c1 dhcpd: DHCPDISCOVER from 08:00:27:3c:bc:fa (test-vm) via eth0
Jan 28 16:28:30 rhel7-c1 dhcpd: DHCPOFFER on 192.168.5.151 to 08:00:27:3c:bc:fa (test-vm) via eth0
Jan 28 16:28:30 rhel7-c1 dhcpd: DHCPREQUEST for 192.168.5.151 (192.168.5.7) from 08:00:27:3c:bc:fa (test-vm) via eth0
Jan 28 16:28:30 rhel7-c1 dhcpd: DHCPACK on 192.168.5.151 to 08:00:27:3c:bc:fa (test-vm) via eth0

Clone - 1:
Jan 28 16:29:22 rhel7-c1 dhcpd: DHCPDISCOVER from 08:00:27:7e:f5:aa (test-vm) via eth0
Jan 28 16:29:22 rhel7-c1 dhcpd: DHCPOFFER on 192.168.5.151 to 08:00:27:7e:f5:aa (test-vm) via eth0
Jan 28 16:29:22 rhel7-c1 dhcpd: DHCPREQUEST for 192.168.5.151 (192.168.5.7) from 08:00:27:7e:f5:aa (test-vm) via eth0
Jan 28 16:29:22 rhel7-c1 dhcpd: DHCPACK on 192.168.5.151 to 08:00:27:7e:f5:aa (test-vm) via eth0

Clone - 2:
Jan 28 16:31:18 rhel7-c1 dhcpd: DHCPDISCOVER from 08:00:27:e1:c7:a9 (test-vm) via eth0
Jan 28 16:31:18 rhel7-c1 dhcpd: Abandoning IP address 192.168.5.151: pinged before offer
Jan 28 16:31:19 rhel7-c1 dhcpd: DHCPDISCOVER from 08:00:27:e1:c7:a9 via eth0
Jan 28 16:31:20 rhel7-c1 dhcpd: DHCPOFFER on 192.168.5.150 to 08:00:27:e1:c7:a9 (test-vm) via eth0
Jan 28 16:31:20 rhel7-c1 dhcpd: DHCPREQUEST for 192.168.5.150 (192.168.5.7) from 08:00:27:e1:c7:a9 (test-vm) via eth0
Jan 28 16:31:20 rhel7-c1 dhcpd: DHCPACK on 192.168.5.150 to 08:00:27:e1:c7:a9 (test-vm) via eth0

Clone - 3:
Jan 28 16:32:17 rhel7-c1 dhcpd: DHCPDISCOVER from 08:00:27:45:39:45 (test-vm) via eth0
Jan 28 16:32:17 rhel7-c1 dhcpd: DHCPOFFER on 192.168.5.150 to 08:00:27:45:39:45 (test-vm) via eth0
Jan 28 16:32:17 rhel7-c1 dhcpd: DHCPREQUEST for 192.168.5.150 (192.168.5.7) from 08:00:27:45:39:45 (test-vm) via eth0
Jan 28 16:32:17 rhel7-c1 dhcpd: DHCPACK on 192.168.5.150 to 08:00:27:45:39:45 (test-vm) via eth0

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content