Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


January 17, 2000

DHCP User Class and Vendor Class Options


RSS
Subscribe to Windows IT Pro | See More Dynamic Host Configuration Protocol (DHCP) Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

DHCP User Class and Vendor Class Options
Windows 2000's (Win2K's) DHCP provides support for a host of new features. This week, I focus on the support for user-specified and vendor-specified DHCP options—features that let administrators assign separate options to clients with similar configuration requirements. For example, if DHCP-aware clients in your human resources (HR) department require a different default gateway or DNS server than the rest of your clients, you can configure DHCP Class IDs to distribute these options to HR clients. The options that Class IDs provide override any scope or global default options that the DHCP server typically assigns.

Option Classes
Windows 2000 Server (Win2K Server) offers two option class types: User Class and Vendor Class. User Classes assign DHCP options to a group of clients that require similar configuration; Vendor Classes typically assign vendor-specific options to clients that share a common vendor type. For example, with Vendor Classes you can assign all Dell computers DHCP options that are common to those machines. The purpose of option classes is to group DHCP options for similar clients within a DHCP scope.

Setting Up a User Class Option
User Class options come in handy when you want to assign special DHCP options to a group of clients. For example, you might decide that roaming salesmen who use laptops should have a short lease period for DHCP options. Or you might decide to assign short leases to managers when they dial in with laptops and longer leases to the same managers when they work in their offices on desktop computers.

Let's say you want to configure a User Class called HR for all HR clients. Configuring a User Class involves adding a user class at the DHCP server and setting a DHCP user class ID at the client. To add a User Class HR on the DHCP server, highlight the DHCP server in the DHCP console and select Define User Classes on the Action menu, as Screen 1 shows. Click Add, and type HR in the Display name box, as Screen 2 shows. Here's where it gets tricky. You need to add the Class ID next. Position your cursor directly under the word ASCII (if you click under the word ID, this procedure won’t work). Click in the white box under the word ASCII, and type HR. You'll see the numbers 48 and 52 appear automatically under ID. Click OK, then click Close. Next, right-click Scope Options in the DHCP console and select Configure Options. Click the Advanced tab. The drop-down box next to the User Class will show the User Class HR that you just added. Select HR and configure the options for the HR group under Available Options. Click OK, and you’re finished with the server portion of the configuration.

Next, you need to set the HR class ID on the client (this requires administrative privileges). Log on to the workstation as a local administrator. Go to the command prompt and type

ipconfig /setclassid  HR

where is the name of your network adapter. In Win2K, you can rename your adapter. For example, I renamed my adapter in Network and Dial-up Connections to 3COM by right-clicking the default local area connection. If you don’t know the name of your adapter, type ipconfig. Substitute the name of your adapter in the above command. The system will reply with a message similar to the following:

C:\> ipconfig /setclassid 3COM HR
Windows 2000 IP Configuration
DHCP ClassId successfully modified for adapter "3COM"

Now if you type ipconfig, you should see HR listed under the DHCP Class ID. You might have to release and renew your IP address to obtain the updated DHCP options for the HR User Class. To delete the Class ID on the client, simply type ipconfig /setclassid (without the Class ID at the end).

Setting Up a Vendor Class Option
The steps for creating a Vendor Class on the DHCP server are identical to creating a User Class, except that you choose Define Vendor Class from the Action menu to add a new class. Microsoft supports Vendor Class options for Win2K and Windows 98 clients. Request for Comments (RFC) 1700 defines the vendor types and lists the reserved hardware and OS type abbreviations. Some vendors can choose to define their vendor IDs for their computers. For example, Compaq can give its clients certain options that are specific to Compaq’s hardware. You'll notice that the only predefined vendor classes on your DHCP server are Microsoft's. For other vendors, you have to manually add the options to make them available to the clients. For more information about Vendor Classes, check out RFCs 2131 and 2132.

Differences Between User Classes and Vendor Classes
Several differences exist between User Classes and Vendor Classes. User Classes are part of proposed Internet drafts; Vendor Classes are part of accepted Internet drafts. You can set and view User Class information with the ipconfig command, as I discussed earlier; DHCP client vendors, such as Microsoft, configure Vendor Class IDs. You use User Classes mainly for administrative purposes, such as providing the same domain name to a group of clients; Vendor Classes typically serve to enhance DHCP functionalities that are specific to a vendor.

With Win2K's new option classes, you can better manage client configurations. You now have more control over specific clients within a particular scope, and vendors can offer enhanced functionalities to their own clients.

End of Article



Reader Comments
Can this DHCP class ID be set in a domain or group policy?

Steven Gallagher August 17, 2001


Simply superb explanation. Straight to Point

Neel March 05, 2004


very good explenation

Rui Machado April 08, 2004


Zubair, Well Done

Raghu June 22, 2004


I posted a comment last time...well now that a new problem has arised...it worked once but many a times i am failing...
the nic seems to accept the accounts dhcp class what i gave....but not taking the scope of that class,rather taking scope of another class HR
what could be the problem.....in use is RTL8139

raghu June 23, 2004


Great Article

Anonymous User February 21, 2005 (Article Rating: )


succinct

Anonymous User March 22, 2005 (Article Rating: )


You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
What You Need to Know About Microsoft's x64 Server Product Plans

What do Longhorn Server, Windows Compute Cluster Server, and Windows Vista have in common? The x64 platform. ...

WinInfo Short Takes: 4th of July Special Edition

An often irreverent look at some of the week's other news, including a shortened work week thanks to the 4th of July, expensive Windows 7 pricing, Bing's modest monthly gains, IE 8 heading to work, Steve Jobs back at Apple, and so much more ...

Social War Dialing - The New Identity Theft Menace

A new method of stealing personal financial information uses VOIP to attack bank customer over the phone. ...


Windows OSs Whitepapers Why SaaS is the Right Solution for Log Management

Related Events WinConnections and Microsoft® Exchange Connections

Windows, Unix, Linux Interoperability

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format

Test Drive IT Solutions and Get Free Music Downloads
Solve your toughest IT problems with these free downloads and receive 5 free music downloads!


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home asp.netPRO Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement | Reprints and Licensing