Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

2 Answers 2

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

share|improve this answer
    
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 7 '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 7 '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 7 '11 at 18:42
1  
According to this post on ServerFault, it is not possible. serverfault.com/questions/268358/… –  EagerToLearn Jul 7 '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 8 '11 at 16:13

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.