question

AndreasUrbschat-0326 avatar image
0 Votes"
AndreasUrbschat-0326 asked AndreasUrbschat-0326 answered

DHCP Failover max Relationship Issue Error 20128

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://docs.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-dns
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

This is a quick note to let you know that I am currently performing research on this issue and will get back to you as soon as possible. I appreciate your patience.

If you have any updates during this process, please feel free to let me know.

Best regards,

Mulder

0 Votes 0 ·
AndreasUrbschat-0326 avatar image
0 Votes"
AndreasUrbschat-0326 answered

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...








5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JiangZhang-MSFT avatar image
0 Votes"
JiangZhang-MSFT answered

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][10] to enable e-mail notifications if you want to receive the related email notification for this thread.
[10]: https://docs.microsoft.com/en-us/answers/articles/67444/email-notifications.html


图片1.jpg (135.6 KiB)
图片2.jpg (32.2 KiB)
图片3.jpg (59.2 KiB)
图片4.png (16.9 KiB)
图片5.png (16.7 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.