The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 807 - File: showthread.php PHP 7.3.15 (Linux)
File Line Function
/showthread.php 807 errorHandler->error

Post Reply 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A problem of DHCP in iPXE
2015-01-31, 05:29
Post: #1
A problem of DHCP in iPXE

I have configure a DHCP server in machine called Server, and I have about eight machines booting by using iPXE called Client1 ...-> Client8. I tried to reboot Server and eight clients at the same time. In total of about 20 times reboot, there are sometimes I see that iPXE in some clients gets the same IP address. For ex,

Assumption that Client1 -> Client8 receives IP1 -> IP8 from DHCP

In successful case, after rebooting all machines, Clien1 to Client8 can receive IP1-IP8 correspondingly and iPXE can get boot correct dump for every client by boot file name option in DHCP server configuration.

In fail case, after rebooting all machine, from the DHCP server log, I see that when Client1 sends DHCPDISCOVER to Server, Server sends DHCPOFFER with IP1 for Client1. Meanwhile Client5 also sends DHCPDISCOVER, server sends DHCPOFFER with IP5 for Client5. In the next step in the dhcp log, I see that Client1 surprisingly sends DHCPREQUEST for IP5 (not IP1), so Server sends DHCPNAK to Client1 as IP5 is reserved for Client5. Client5 also sends DHCPREQUEST to Server and Server returns DHCPACK for successful lease. At this time, tftp starts to download dump and amazingly Client1 and Client5 tries to download dump of Client5. Client1 should download the dump for it but maybe it receives the wrong DHCPOFFER and tries to download dump of Client 5 through the boot file name option in DHCPOFFER package.

My question is why iPXE on Client1 is replying to wrong DHCPOFFER?.The second question is that why Client1 is (probably) ignoring he DHCPNAK received from the Server and start tftp to download dump?. Is it a really problem in DHCP implement of iPXE.

I make sure that DHCP server configuration is correct. This problem I see is about five times in 20 times rebooting.

I am using undionly.kkpxe to boot.

Thanks alot
Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
A problem of DHCP in iPXE - naruto - 2015-01-31 05:29
RE: A problem of DHCP in iPXE - mcb30 - 2016-07-04, 10:04

User(s) browsing this thread: 1 Guest(s)