Solved

Multiple DHCP Scopes for Vlans

Posted on 2011-02-22
8
1,070 Views
Last Modified: 2012-08-14
Forgive my ignorance on this subject, but here goes.

DHCP Server: Server 2003 SP2
Switches: Cisco 3560's

We have a vlan setup for our voip phones, and currently they get all of their DHCP from the phone server itself since that vlan could not see our DHCP server. However now I have activated the 2nd nic on our DHCP box, and would like to manage DHCP from there. So I have a nic in the box set to 192.168.0.x and one to 192.168.2.x (and the switch set so the 2.x net only sees that vlan). I know how to add a new scope, but how do I link that scope to a specific nic. Here is how I think it works.

PC/PHONE/WHATEVER needs an IP address, so it asks hey is there a dhcp server here. In which case regardless of subnet this server will respond yes and give it an address.

I found this basic definition.

A DHCP scope is a valid range of IP addresses which are available for assignments or lease to client computers on a particular subnet.

That sounds all good, except the client machine is not on a subnet until the DHCP server assigns one right? So how does it know which scope to use?

0
Comment
Question by:bhieb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 3

Assisted Solution

by:pitchford
pitchford earned 50 total points
ID: 34951880
Why not reconsider your thinking. You can run multiple VLANs with a single DHCP server. We have man VLANs all connecting back to the same DHCP server with 1 NIC. On the VLAN interface you'd set something like the following:

int vlan 100
ip helper-address x.x.x.x (this is your DHCP server)

This will point all notes sending a DHCP request on VLAN 100 to point to the DHCP server. We do this with our local VLANs and our remote VLANs across the WAN.
0
 

Author Comment

by:bhieb
ID: 34951897
Regardless of how the request gets to the server, how does the server know which scope to use? In your case how does your server know to use scope A for vlan1 and scope b for vlan2?
0
 
LVL 39

Accepted Solution

by:
Krzysztof Pytko earned 400 total points
ID: 34951907
Those VLANs are separate networks and each VLAN on switch have configured IP Helper which point them to appropriate DHCP server. Then using network ID, DHCP server located appropriate scope and issued IP lease to the device. So, there is no possibility to get IP adrdess for other VLAN if you are in another :)

Regards,
Krzysztof
0
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

 

Author Comment

by:bhieb
ID: 34951909
By the way your method is exactly what I'm trying to do. Currently we have 2 DHCP servers, I want to get rid of the extra one and just use our main DHCP.
0
 

Author Comment

by:bhieb
ID: 34951925
@iSiek

Ok I think I understand because the DHCP relay or helper in the swich only forwards traffic on 2.x the server assigns according to that traffic.
0
 

Author Comment

by:bhieb
ID: 34951930
So simply adding the scope is all I need to do, as whatever subnet it is coming from is what the server will use.  Let me try that out.
0
 
LVL 39

Expert Comment

by:Krzysztof Pytko
ID: 34951944
OK :) Wish you luck. If you configure DHCP Relay Agent/IP Helper properly, should work like a charm :]

Krzysztof
0
 
LVL 4

Assisted Solution

by:h3nnys
h3nnys earned 50 total points
ID: 34952013
In the DHCP console, server properties, Advanced tab, Bindings button. You
should be able to provide DHCP on any and all interfaces that have a static
IP address. Any scopes you create must be consistent with the subnet for
one of the static IPs unless you are using DHCP Relay Agent. Not sure
whether that answers your question.

0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever wondered why you had to use DHCP options (dhcp opt 60, 66 or 67) in order to use PXE? Well, you don't!
Many of us need to configure DHCP server(s) in their environment. We can do that simply via DHCP console on server or using MMC snap-in on each computer with Administrative Tools installed in a network. But what if we have to configure many DHCP ser…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

636 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