Conflict detection attempts Windows DHCP Server


Recommended Posts

I am confused about the "Conflict detection attempts" feature in a Windows DHCP Server. I wanted to set this to a higher value than 1, Say for example 4 or 5. This would wait 5 pings before assigning a client device a spare IP. This should stop all 99.99% of IP Conflicts appearing on Windows Client Devices. Is this right? As its pretty certain after 5 pings that address is free.

However I was told that this number is the number of Rouge DHCP Servers that are allowed on the network so it has to be set at 1 and that if it detected 1 (or more) DHCP servers on the network it shuts itself down.

Which is correct?

Well for starters something not answering ping does not mean its not there on that IP, its firewall might just prevent answering ping.

What windows dhcp server are you using 2k8r2, 2012, 2016?

https://technet.microsoft.com/en-us/library/dd183587(v=ws.10).aspx

I have never seen any sort of setting that detection of another dhcp server it would shut it self down, this seems like a self defeating sort of feature - if detect rouge dhcp server, shut yourself down and allow just the rouge?  That doesn't seem like a good idea.

  On 20/11/2015 at 15:02, BudMan said:

Well for starters something not answering ping does not mean its not there on that IP, its firewall might just prevent answering ping.

What windows dhcp server are you using 2k8r2, 2012, 2016?

https://technet.microsoft.com/en-us/library/dd183587(v=ws.10).aspx

I have never seen any sort of setting that detection of another dhcp server it would shut it self down, this seems like a self defeating sort of feature - if detect rouge dhcp server, shut yourself down and allow just the rouge?  That doesn't seem like a good idea.

Yeah sorry, I meant normal LAN stuff that does allow DHCP. Firewall isnt the issue is, More ping latency. So hence I set I would have set it to 4 or 5 rather than one. 2012 server.

setting it higher than 3 could cause for lots of issues in delays in getting a lease.  Many hosts that do dhcp have firewalls and do not answer ping..  Windows built in firewall blocks pings for example out of the gate, it might allow from same segment..  But many dhcp servers are not directly on the same segment, you use a relay/helper say on the switch to forward the dhcp request to the dhcp server.

Many clients and servers also check that nothing answers an arp for that IP, if they show that IP in use they would send back a decline for that lease to the dhcp server.  This was back in the NT4 days, like sp 2 or something when they added that dhcpdecline feature from the rfc 1541 I do believe.

To be honest duplicate IPs handed out by dhcp server is very rare these days, normally its statics where this happens because of lack of good IP management.  Or misconfiguration of dhcp servers where you have more than 1 using, etc..  Most clients wont even accept a lease for a IP they find as duplicate.  I can not recall the last time I have seen a dupe IP issue with dhcp servers.

So for example here is a sniff of dhcp transaction.  Notice right after the discover that arps are sent, server asking hey anyone have this IP 192.168.3.101...  If nothing back it sends the offer, then the request and then you see the ack, you also see right after the ack the client sends out a ARP saying hey anyone got this 192.168.3.101 address.  If the client got something back, it should then send a decline to the dhcp server and then ask for another IP.  The decline would say hey, I don't like that address since something else seems to have it.  And then do another discover process after the dhcp server should of marked that IP as bad.

dhcpprocess.thumb.png.9c2ca0a8c9a988cb35

To be honest you shouldn't even have to send out pings, like I mentioned many devices might not even answer that - but have never seen anything not answer ARP..  Even with a firewall.

If you may have guessed dhcp is one of my fun protocols ;)  Just like dns...  If your having problems with dupes -- be more than happy to track down the reason with you.

 

Edited by BudMan

Are your different DHCP servers have different scopes?

Besides a router issue I can  see both servers trying to give an IP address that is the same. One handshakes and gives it an IP address while the other DHCP server thinks it's free and reports a conflict as it is already assigned.

In addition I believe you can set your servers to use DHCP assigned to a SID during it's lease too which could stop conflicts as one hand (DHCP server) doesn't know what the other is doing. Set different scope ranges for each box and try to assign to MAC or SID during a lease. So let's say someone shut's down his or her pc before the lease is up? The system comes back and does another DHCP broadcast when the LAN is initialized. The SID is recognized and the previous IP address is assigned. That would cut this down.

  On 20/11/2015 at 15:02, BudMan said:

Well for starters something not answering ping does not mean its not there on that IP, its firewall might just prevent answering ping.

What windows dhcp server are you using 2k8r2, 2012, 2016?

https://technet.microsoft.com/en-us/library/dd183587(v=ws.10).aspx

I have never seen any sort of setting that detection of another dhcp server it would shut it self down, this seems like a self defeating sort of feature - if detect rouge dhcp server, shut yourself down and allow just the rouge?  That doesn't seem like a good idea.

2000 and 2003 did from what I remember, vaguely remember them shutting down when dhcp was handed out by gateway. I haven't really played with multiple dhcp severs on 2008, but 2012 does have a load balancing feature. 

I don't recall that, but sure its  possible - not like MS doesn't do some really stupid ###### all the time..  Now I could see if dhcp server was set to non authoritative and it saw an authoritative dhcp server, maybe.. But you would normally always have your dhcp set for authoritative..  Otherwise you can have issues with devices that come from other networks and have other leases switching to your network.

Not exactly sure what John T is after here, to be honest I would just leave it at 0, it should arp and the client should arp as well looking for devices that already have that IP..  Having it "ping' is just going to slow down the handing out of leases.  Ping would be useful if the dhcp server is not on the same layer 2 as the clients, ie you relay/helper to get to your dhcp server.  Since his arp is not going to get an answer if he is on a different l2 segment.  You should be ok since the client should detect and send back decline..  But if you have lots of different devices/os'es on our network - its possible some dhcp clients don't do proper checking or use of decline, etc.

Without a better understanding of the specific network, how dhcp is deployed in the network - the issue being seen..  To just answer the generic question, if you want to use that feature and have your dhcp server ping - 1 should be enough..  I sure and the hell would not go above say 3 or your going to have issues I would think with waiting for that to come back before the offer is sent.

LOL! DHCP servers don't shut down, they just don't hand out the IP address because another DHCP server has answered the broadcast. 

If you have multiple DHCP servers on your network, you can do a 70\30 or 80\20 scope split, which then you'd use the delay option on one of the servers.

I remember the down arrow on the 03 server when a linksys was handing out addresses.  Or maybe it was 00.  I don't remember the details, I remember the troubleshooting. 

Edited by sc302
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • while this is a valid concern from people unfamiliar with the linux world it is not representative of reality.
    • Kindle Scribe Essentials Bundle offers great value for students and professionals by Paul Hill Earlier this week, we featured the Kindle Scribe in a deals post. Amazon’s largest Kindle had fallen to its lowest price; these are still on offer if you’re interested. Now, the company has also decided to discount the Kindle Scribe Essentials Bundle, which includes the Kindle Scribe with Premium Pen, premium leather folio, and a 9W power adapter. The Premium Pen is already included with the Kindle Scribe, but this bundle adds the premium leather folio and 9W power adapter. The 64GB Kindle Scribe variants (available in two colors) cost $404.97, down from $569.97. By using this deal, you’re saving $165 off the list price and it’s $65 less than if you bought the bundle items separately. In the original deal, which is still available, you got the Kindle and the pen, so this bundle adds the 9W power adapter and the premium leather folio. If you are still looking for Father’s Day gifts, this Kindle Scribe Essentials Bundle will not arrive in time, even if you get a Prime member trial. What the Kindle Scribe does The Kindle Scribe features a large 10.2-inch glare-free display with a 300 ppi density. It comes with a Premium Pen that makes it feel like you’re writing on paper as you jot down your notes. To make writing easier, you get Active Canvas for in-book notes and a built-in notebook with templates. You can import and write on PDFs and documents via Send to Kindle, including sending directly from Word if you have a Microsoft 365 subscription. With the inclusion of the natural leather folio, which patinas over time, you are able to wake and sleep your Kindle Scribe by opening and closing the folio. It uses a magnetic attachment to ensure a secure close. Once you have written out your notes, the Kindle Scribe allows you to summarize them using artificial intelligence. You can even customize the length and tone of your notes. You can also refine your notes by converting your handwritten words into a script font. One of the standout features of other Kindle devices is their spectacular battery life, and the Kindle Scribe promises the same. The battery will last you up to 12 weeks for reading and up to 3 weeks for writing. Furthermore, Amazon has used 18% recycled materials including 100% recycled aluminum parts, and it comes in fully recyclable packaging. Finally, and it shouldn’t really need mentioning, the Kindle Scribe has full access to the Kindle Store so you can quickly and easily gain access to all of the latest books. Should you buy it? Anyone who has ever loved using a Kindle product should check out the Scribe as it has many of the same characteristics, but on a bigger scale and with writing capabilities. Students at college, especially those studying something like literature, could benefit. It could also be good for professionals who need to annotate documents. If you saw the deal earlier this week and were worried about scuffing up the device, then this deal may be more tempting thanks to the inclusion of the folio case. Amazon Kindle Scribe Essentials Bundle (16GB): $359.97 (Amazon US) / MSRP $519.97 Amazon Kindle Scribe Essentials Bundle (32GB): $374.97 (Amazon US) / MSRP $539.97 Amazon Kindle Scribe Essentials Bundle (64GB, Tungsten/Black Folio): $404.97 (Amazon US) / MSRP $569.97 Amazon Kindle Scribe Essentials Bundle (64GB, Metallic Jade/Dark Emerald Folio): $404.97 (Amazon US) / MSRP $569.97 This Amazon deal is US-specific and not available in other regions unless specified. If you don't like it or want to look at more options, check out the Amazon US deals page here. Get Prime (SNAP), Prime Video, Audible Plus or Kindle / Music Unlimited. Free for 30 days. As an Amazon Associate, we earn from qualifying purchases.
    • sounds like this same jet had electrical failures in a prior flight including the entertainment systems, and call buttons and other things not working
    • That's the publisher's fault and happens with or without GamePass. Microsoft at least offers the Play Anywhere option.
  • Recent Achievements

    • First Post
      NeoToad777 earned a badge
      First Post
    • Week One Done
      JoeV earned a badge
      Week One Done
    • One Month Later
      VAT Services in UAE earned a badge
      One Month Later
    • First Post
      LsDmT earned a badge
      First Post
    • Week One Done
      evershinefacilityservice earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      572
    2. 2
      ATLien_0
      247
    3. 3
      +Edouard
      162
    4. 4
      +FloatingFatMan
      151
    5. 5
      Michael Scrip
      113
  • Tell a friend

    Love Neowin? Tell a friend!