DHCP Failover max Relationship Issue Error 20128

Andreas Urbschat 96 Reputation points
2021-04-01T07:41:31.27+00:00

I have tried to configure more than 25 Scopes from several DHCP-Servers to connect to a single HotStandby-DHCP Server.
The next added Scope gave me this: Error 20128

Add-DhcpServerv4Failover : Fehler beim Erstellen der Failoverbeziehung "server1 bla" auf dem Server "xxxxx1".  
In B:\Scripts\Tools\DHCP\Migrate-DHCP-Failover.ps1:48 Zeichen:1  
+ Add-DhcpServerv4Failover -ComputerName $Source  -PartnerServer $Desti ...  
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
    + CategoryInfo          : Grenzwertüberschreitung: (xxxxx2:root/Microsoft/...erverv4Failover) [Add-DhcpServerv4Failover], CimException  
    + FullyQualifiedErrorId : DHCP 20128,Add-DhcpServerv4Failover  

There is a limit built in DHCP-Failover, but no explanation can be found via Google.
Is there a Reference available about this topic more than simple API Error Codes ?
(https://learn.microsoft.com/en-us/previous-versions/windows/desktop/dhcp/dhcp-server-management-api-error-codes)

My goal is to provide a HotStandby-Backup for >200 Scopes, this is not limited by WMI-Connections afaik...

Windows DHCP
Windows DHCP
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.DHCP: Dynamic Host Configuration Protocol (DHCP). A communications protocol that lets network administrators manage centrally and automate the assignment of Internet Protocol (IP) addresses in an organization's network.
1,044 questions
{count} votes

Accepted answer
  1. Andreas Urbschat 96 Reputation points
    2021-04-09T02:09:48.75+00:00

    We found the the reason for the error:

    It was a wrong usage of the command "Add-DhcpServerv4Failover", this is meant to connect a whole server, not a single scope. But it allows you to do many connections to the same server, that is maybe a design flaw. It can spoil all of your 31 available connections on single scopes on the same server....

    In fact, you can connect 31 DHCP Servers to your partner DHCP by using the command "Add-DhcpServerv4Failover".
    And..You can add >200 Scopes per Server as you tested with "Add-DhcpServerv4FailoverScope" referring to the same name.

    This command is initializing the Failover-Connection with 2 Scopes for example:

    Add-DhcpServerv4Failover -ComputerName "server1" -Name "Server1-Failover" -PartnerServer "centralDHCP" `
    -ScopeId 10.10.10.0,10.20.20.0
    

    additional scopes from the same server must be added by this command under the same Name:

    Add-DhcpServerv4FailoverScope -ComputerName "server1" -Name "Server1-Failover"-ScopeId 10.10.11.0,10.20.21.0
    

    ...The next Server gets a new connection name as communication channel "Server2-Failover".

    Thank you Jiang for your efforts, i recommend using powershell doing such jobs...

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Jiang Zhang 811 Reputation points
    2021-04-08T09:43:37.777+00:00

    Hi,
    I have tried to add 201 scopes in my lab, and it appears there is no limit amounts of scope built in DHCP-failover relationship with my TWO DHCP servers. I am wondering how many DHCP servers you are goanna use to add scopes to a single Hot Standby-DHCP Server?
    85764-%E5%9B%BE%E7%89%871.jpg

    85765-%E5%9B%BE%E7%89%872.jpg

    85734-%E5%9B%BE%E7%89%873.jpg

    85735-%E5%9B%BE%E7%89%874.png

    85766-%E5%9B%BE%E7%89%875.png

    Best Regards,
    Mulder Zhang


    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.