03-11-2008 02:30 PM - edited 03-05-2019 09:41 PM
Guys,
Can i just have two routers working as DHCP server in one LAN scenario, such that one router acting as primary and second one as failover to the primary router? Just wondering if i can have redundancy in dhcp server as well.
Moreover, if I have a windows server acting as DHCP server, can i have router acting as dhcp server(secondary) as well. just in case primary is down router can act as dhcp server.
--gaurav
03-11-2008 10:44 PM
Hi Gaurav,
Yes you can.
If they both respond to hosts, the hosts will decide which dhcp offer to accept.
When your dhcp servers are located more than 1 hop away, then you can configure several "ip helper address" commands in the dhcp relay agent, the 1st command pointing to the 1st dhcp server, the 2nd command pointing to the backup dhcp server.
Cheers:
Istvan
03-12-2008 01:58 AM
Redundancy with DHCP servers are generally done in the following way
create two scopes on two seperate servers. On one server say A, create an exclusion that covers the first half of the scope. On the second server exclude the second half of the scope. This prevents one server from allocating addresses from the other server; and also stops one server from sending out NAKs to DHCP requests/renews intended for the other server.
HTH
Narayan
03-12-2008 04:32 AM
gaurav
Both Istvan and Narayan have focused their answers on the part of your question about having 2 DHCP servers (whether it is 2 routers or 1 router and 1 external server). Let me focus on the other part of your question which is about having 1 server as primary and the other server as backup. You can not really do this. Both servers will be active. Both servers will receive the DHCP request and both servers will offer addresses. As mentioned by Istvan the client will choose which address to accept.
So yes you can have 2 DHCP servers to provide redundancy. But no you can not really have one as backup to function only if the primary fails. They will both be active all the time.
HTH
Rick
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: