I have to ask a few questions:
1. Are both DHCP servers in the same VLAN?
2. Are the IP helper addresses on the router to the DHCP address or VLAN broadcast (10.1.1.255)?
3. How many addresses are you working with?
MS did not make DHCP failover/redundancy an easy thing to do, since there is no type of data base replications like there is in WINS, but it can be done (sorta)
But here is what I have to offer:
The IP helper address can be set to an individual IP address so that all those lost broadcast type UDP port packets are sent to a specific IP (by that I mean TFTP, TACACS, DNS, DHCP, WINS and a few others). Or you can modify which types of traffic (again, by the port numbers) are sent to specific IP’s. You can configure an IP helper for WINS (port137) to point to 10.1.1.1 while DHCP (Port63) is pointed to 10.1.1.2, DNS (port53) to 10.1.1.3 and so on. You can also set an IP helper to broadcast to IP subnet range. If you use the previous IP examples you could configure an IP helper of 10.1.1.255 (based on a /24 address). This will allow all those UDP type ports to be passed to ALL IP’s in that subnet, this can be bad! But I have seen it used when all servers were in a Server Farm VLAN. The reason I bring this up is with two DHCP servers in different VLAN’s the 1st IP helper listed will be the one used to process the IP request. If there is no answer from the 1st address then it will use the second IP helper address to process. This is also why adding the port number is important, and also note that this called an ip forward-protocol command.
So I would build the following:
DHCP1 in VLAN2 with IP of 10.1.1.254 (with 80% of IP needed for each VLAN)*
DHCP2 in VLAN7 with IP of 10.1.7.254 (with 20% of IP needed for each VLAN with a very short lease time!!!) *
*DHCP1 has 20% of the IP’s for VLAN 7 and DHCP2 has 80% of the IP’s for VLAN7
VLAN’s 1-6 have primary IP Helper address of 10.1.1.254 port 67
VLAN’s 1-6 have secondary IP Helper address of 10.1.7.254 port 67
VLAN 7 has primary IP Helper address of 10.1.7.254 port 67
VLAN 7 has secondary IP Helper address of 10.1.1.254 port 67
If both DHCP servers are in the same VLAN modify the IP addresses accordingly but I have seen this configured and it did not work to well. Also note that if properly configured DHCP2 sits very quite with nothing to do. One of the checks and balances I’ve used is to have one of the VLAN’s pull it primary DHCP addresses from DHCP2, in the above example I would make VLAN 7 pull straight from the DHCP2. This way you can make sure the back up is actually working and will not fail when the primary takes a nap!
As another point of design I try to combine my DNS, DHCP and WINS on the same server. For some reason things just work better when all that name resolution and address-finding is done by the same machine.
SF18C
CCNA, MCSE, A+, N+ & HPCC
"Tis better to die on your feet than live on your knees!"