5

I need to serve slightly different DHCP information to clients based on the MAC address prefix. MAC addresses from a particular vendor need to have PXE assigned to a certain host, while all other devices need to receive PXE information for another host.

Is it possible to configure or script this to happen automatically? The DHCP server is Windows Server 2008 R2. I know this can be done in Linux/Unix by setting classes to match a substring in dhcp.conf, but I see no similar functionality in Windows.

Static reservations aren't practical for the size of the network.

Shaun
  • 51
  • 1
  • 3

2 Answers2

4

I think this is what you're looking for.

"To configure a new filter

Open the DHCP snap-in.

In the console tree, double-click the applicable DHCP server, double-click IPv4, double-click Filters, and then right-click Allow or Deny.

Click New Filter, and then type a MAC Address and Description. Description is an optional field.

"

"The MAC address can either be the full address or a MAC address pattern (wild card). Following are the valid MAC address wild cards:

00-1C-23-*-*-*

00-1C-23-20-AF-*

00-1C-23-20-*-*

001C2320AF4E

001C*"

EDIT: Source http://technet.microsoft.com/en-us/library/dd759190.aspx

EagerToLearn
  • 98
  • 2
  • 8
  • A filter lets me allow or deny hosts, but it doesn't let me serve them different PXE information based on their MAC. All I can choose is whether or not to respond to their DHCP request based on their MAC. – Shaun Jul 07 '11 at 17:38
  • 1
    I don't have it in front of me, but can the filters not be applied to different scopes? – EagerToLearn Jul 07 '11 at 18:11
  • I know it is also possible through cisco devices to force certain mac addresses into a certain VLAN and then have PC's within that VLAN assigned the IP info you want. I'm not 100% sure if this works with mac address *pre-fixes* though. And this is all assuming you have cisco equipment. – EagerToLearn Jul 07 '11 at 18:42
  • 1
    According to this post on ServerFault, it is *not* possible. http://serverfault.com/questions/268358/assign-dhcp-ips-for-specific-mac-prefixes-on-windows-server-2008-r2 – EagerToLearn Jul 07 '11 at 18:50
  • Yeah, Windows only lets you apply filters to the entire server, not to specific scopes. This is a rather silly limitation, and somewhat of an oversight IMO. Looks like it's not possible. Thanks. – Shaun Jul 08 '11 at 16:13
  • And, we do have Cisco equipment. I was trying to avoid playing with VLAN segregation, because that requires involving approval of our corporate networking team. Looks like that's the direction I have to go. Thanks again. – Shaun Jul 08 '11 at 16:14
1

The proper way to do what you are asking would be use to Policy filtering at the scope level.

You can change what PXE Boot options if your DHCP is serving and several other DHCP options as well as IP range and denying service.

Phelom
  • 11
  • 1