08-30-2023 08:22 AM
Let's suppose I want dhcp redundancy.
I have 2 ISP cisco router.
R1 is configured as 192.168.1.1/24 with dhcp enabled.
R2 is configured as 192.168.2.1/24 with dhcp enabled.
It is both connected to the same unmanaged layer 2 switch.
What happens to the end devices connected to the switch?
Is there any other way to achieve dhcp redundancy?
08-30-2023 08:34 AM
Depends on which router reply quick that DHCP address get for the user.
i would suggest to have out of the box, small Rasberry Pi for DHCP Server in the network.
But again the question come here ? how are you going to use both the ISP network ? ( you need to intellegent device between switch and routers to make that decision.
08-30-2023 08:39 AM
So it will work?
There wouldnt be any dhcp conflict on the unmanaged switch?
R1 and R2 have their own static route to isp so it wouldnt be an issue.
I am afraid because there are some servers that need static ip
09-01-2023 09:35 AM
If you happy user get random IP address and Router can do NAT - is this acceptable ?
09-01-2023 05:59 PM
"There wouldnt be any dhcp conflict on the unmanaged switch?"
That depends on what you're doing (which is why I made assumptions in my first reply)and what you consider is a "conflict".
"R1 and R2 have their own static route to isp so it wouldnt be an issue."
Again, depends on what you're doing.
"I am afraid because there are some servers that need static ip"
If some server are using a static IP how does DHCP become a consideration?
09-02-2023 02:41 AM
The original post describes 2 routers and 2 networks which implies separation of traffic but they are connected to an unmanaged switch. But the unmanaged switch treats everything equally and there is no separation of traffic on an unmanaged switch. If you want the 2 networks to be separate you need a managed switch.
09-01-2023 05:55 PM
"What happens to the end devices connected to the switch?"
You're also implying R1 and R2 .1 interface is connected to the unmanaged switch?
If so, each router only has that /24 networking, including for a DHCP pool?
If so, you have a "race" condition (much like multiple DHCP servers supporting the same network block). Also what @balaji.bandi is describing with his first reply's first sentence "Depends on which router reply quick that DHCP address get for the user."
I.e. both will obtain the DHCP request and both will make a offer, fastest wins.
"Is there any other way to achieve dhcp redundancy?"
Yes.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide