Solved

Two DHCP servers in same subnet

Posted on 2004-08-14
10
2,020 Views
Last Modified: 2008-03-10
What will happen if I put 2 DHCP server in the same subnet? If I connect new computer to the network witch DHCP will reply first ?
0
Comment
Question by:AlexC77
10 Comments
 
LVL 27

Expert Comment

by:pseudocyber
ID: 11803142
Which one will reply first is a tossup.

If you want to have 2 dhcp servers, make sure their scopes don't overlap.
0
 
LVL 2

Accepted Solution

by:
kpmas earned 250 total points
ID: 11803939
You are playing with fire... :)

When a client fires up their computer with a dhcp client, they will send a dhcp request to 255.255.255.255 (broadcast) asking for any available DHCP servers to reply.  The client will get two answers (one from each dhcp server because it can see both) and take the *last* answer it receives.  Causes mass confusion inside a network as you'll have *no* way to control who gets which IP address.

The only method around this is to use MAC authentication where your client mac addresses are filtering against each DHCP server.  If a MAC address exists in the local database, then it will answer and provide an IP.  If it doesn't exist it'll ignore the request.

Why do you want two different dhcp servers in the same subnet anyways if you don't mind me asking?

Thanks,

Paul
0
 

Expert Comment

by:Robert_Ozone
ID: 11804014
Define scopes that don't overlap
Example:
DHCP #1
10.0.0.1-101

DHCP #2
10.0.0.102-254
0
 
LVL 2

Expert Comment

by:kpmas
ID: 11804170
That will not work... those scopes are not valid subnet ranges anyways....

The clients will still make a request and besides some of my comments above, you have no way to control which scope each client will go into...

Presuming the question was on how to control who goes into each scope?  Perhaps I misunderstood the actual question..... but then why wouldn't you just make a scope larger than adding a second DHCP server??

Paul
0
 

Expert Comment

by:jmitkin
ID: 11804237
It depends. First of all try that their scope to not overlap. If you have a Win 2000 or 2003 domain you simply can't have 2 DHCP servers because only one have the authority to lease address.
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 1

Author Comment

by:AlexC77
ID: 11804584
2 kpmas: The reason why I want 2 DHCP servers is because I have office computers and production computers. I want one DHCP server assign IP addresses to office computers, another DHCP server to production computers. Two different subnets doesnt work in my case, I need all the of computers to be in one subnet. And you are right, mu actual question was how to contol who will take IP from first server and who from second.

2 Robert_Ozone: Of course I will have 2 different scopes, each DHCP server will assign IP different IP's. But from the same subnet. For example 1 DHCP: 192.168.0.1-192.168.0.127, 2 DHCP: 192.168.0.128-192.168.0.254. Subnet mask will be 255.255.255.0 on both of them, so all computers will belong to the same subnet.
0
 
LVL 7

Expert Comment

by:LimeSMJ
ID: 11804666
Your only option is to VLAN the two DHCP servers from one another on your switch (if your switch is capable of that)...  but it would be much easier to just setup two subnets since if you were to VLAN, you need to setup rules as to what packets are allowed from one VLAN to the other VLAN.
0
 
LVL 2

Expert Comment

by:kpmas
ID: 11804684
Hi AlexC77...

Is there a particular reason you want to have your office and production computers on the same subnet?  Sorry if I'm harping on this, but if it's a traditional Windows network why not subnet two different sections off which will solve your DHCP requirements?  As long as you have a WINS server somewhere in the network, you could run netbios functions over IP if needed.... a lot of different ways to accomplish this *if* it's possible to split them..

Failing that, the only other solution I can think of is to use Mac authentication on the DHCP servers.  I haven't done this on a Windows DHCP server in quite some time but in Linux DHCP you can permit only certain Mac's to obtain an IP address.  So, add a list of each one and then only those servers can service those clients etc...

Hope this helps..:)

Paul
0
 
LVL 1

Author Comment

by:AlexC77
ID: 11804705
Thanks for all your time.
0
 
LVL 3

Expert Comment

by:Ghousullah
ID: 12056022
Pl let me know whether You have what domain you have?....Because in Windows 2000 DHCP servermust be authorised by the AD.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Preface There are many applications where some computing systems need have their system clocks running synchronized within a small margin and eventually need to be in sync with the global time. There are different solutions for this, i.e. the W3…
Even if you have implemented a Mobile Device Management solution company wide, it is a good idea to make sure you are taking into account all of the major risks to your electronic protected health information (ePHI).
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now