Setting DHCP Class id for MAC

Hi Guys,

On Windows clients we can setup Dhcp class id, so that a particular range of ip's are addressed to those clients.

Is is possible to assign such dhcp class id to Mac os X ? cause currently i have to assign static ips to my mac user [one of them being my MD]. Setting up dhcp class id for mac will be a relief for the users who now have to go thru the hassle of manually changing their settings.

Awaiting some good responce.
Thanks 🙂

Apple Air & iMac, Mac OS X (10.5)

Posted on Apr 10, 2008 6:51 AM

Reply
3 replies

Apr 10, 2008 9:28 AM in response to rohver

What do you meant exactly?

Normally a DHCP client asks the server for an address and it gets returned one. If I understand what you are asking for it sounds very non-standard, since basically you seem to be saying that they can specify a zone of something of the sort, which I have never heard of before (maybe another MS specific extension?). A better approach on the DHCP server would either to split things into subnets and have different ranges for each, or to reserve certain addresses based on the MAC address of the specific computers.

May 2, 2008 9:05 AM in response to rohver

Hello,

You can set the ClassID in the Network Control Panel in the *DHCP Client ID* box. The trick lies in setting up your DHCP server to recognize it. Windows XP sends the DHCP class ID via DHCP option 77, and OS X sends it via option 61. You'll have to set your DHCP server to check for option 61, +with an offset of 1 and a length of 9+. That's the tricky bit. How you do this will depend on what DHCP server you are using, but this is what it looks like in the DHCPD.conf file:

class "ClassIDMac" {
match if (substring ( option dhcp-client-identifier, 1, 9) = "ClientID");
}

You'll also have to allow that Classid into your address pool, same as you did for XP:

pool {
range 10.0.0.5 10.0.0.199;
default-lease-time 43200;
min-lease-time 43200;
max-lease-time 43200;
allow members of "ClassIDxp";
allow members of "ClassIDMac";
}

I hope this helps,
Ron Lussier

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Setting DHCP Class id for MAC

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.