[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1090
  • Last Modified:

Windows 2003 Server DHCP manual allocation

I am migrating from a Linux DHCP server to a Windows 2003 Server DHCP.

Our wireless network scope on the linux server requires that the MAC address be "authorized" (for a lack of better terms) in the dhcpd.conf file or it will not provide an IP address.

How do I accomplish this on DHCP using a Windows 2003 Server? MS states that It can be configured for manual allocation of IP addresses, but I must be missing something.
0
gelderjr
Asked:
gelderjr
  • 2
  • 2
  • 2
  • +1
3 Solutions
 
dhoffman_98Commented:
What you are talking about is what Microsoft refers to as a DHCP reservation.
In your scope definition on the Windows 2003 DHCP Server, you'll see a section under the scope for Reservations. Right click, and you can add a new reservation. You'll provide a reservation name (we use the fully qualified domain name), the IP Address, the MAC address, and optionally, a description.
0
 
gelderjrAuthor Commented:
Correct - I will need to set reservations for each device using the MAC address.

However, I do not want any IP addresses assigned without a reservation for the device.

The easy solution would be to only include the IP addresses in teh scope of assigned equipment, as we are constantly removing equipment this would require that the scope be constantly changing and that equipment reservations would need to be changed to fill in the middle IP addresses.

Can you set a 00:00:00:00:00:00 reservation for unused IP addresses that should not be assigned? That might provide a solution.
0
 
kleptomeCommented:
Reservations:
Correct, set reservations for known device MAC's.  

Exclusion Ranges:
Then, in the address pool, add an Exclusion Range that covers the remaining available address in the scope.  Or add a single IP range exclusion that will use up one IP Address at a time. This will effectively make no address available.  
Be careful, if a reservation is in an exclusion range block, it will not be handed out.

Then you won't have to modify your scope every time you want to add more addresses.  I use a combination of Exclusion Ranges and Single IP Exclusion Ranges to manage my 'free' IP Addresses.
0
Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

 
dhoffman_98Commented:
You can set a reservation with all zeros like you showed, but that (and kleptome's solution) will both present another problem.

Microsoft DHCP calculates the number of available addresses in the pool for dynamic allocation. If your pool has 100 addresses in it, and you create 100 reservations for those addresses, then that leaves ZERO addresses available.

DHCP will create error events every time the DHCP scope is checked. These events will indicate that you are out of available addresses. Since this is what you actually want, you'll just have to ignore those errors, and the red or yellow warning indicator in the DHCP Console.
0
 
gelderjrAuthor Commented:
OK - I agree that this will work around the problem, but I agree with dhoffman_98 as well that the error log will rapidly fill and if it is set to overwrite then we may miss other valuable information.

Does MS DHCP have any other mechanisms to do this?

In Linux I have the range (10.1.5.x) setup so that only MAC address assigned IP addresses are leased, all others available are not handed out when requested.

Any other thoughts on this?
0
 
kleptomeCommented:
Yes, the log readability and availability of real errors can be an issue, but I use MS log parser to monitor my logs and have not really run into the issue of missing an error or not being able to monitor the real ones.  I have not seen a mechanism to perform a similar function as the one described for Linux.
0
 
tn09ac6723Commented:
You can make use of MACfiltercallout.dll for this purpose ...wher you can authorise set of MAC address to be server by the DHCP server .

Pls see http://blogs.technet.com/teamdhcp/archive/2007/10/03/dhcp-server-callout-dll-for-mac-address-based-filtering.aspx

for more details ...

Let me know if you have any issues still .  Windows DHCP server works very great.
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

  • 2
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now