Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  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 log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
Microsoft: Save Money ... By Paying for Software

Microsoft this week adopted an interesting tactic in its long-running battle with open source software: Businesses looking to save money over the long haul should simply pay for software instead of moving to free, open source solutions. The rationale? ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

Microsoft Delivers Service Pack 2 Beta 2 for Vista, Server 2008

Microsoft on Tuesday announced the availability of the Beta 2 version of Service Pack 2 (SP2) for Windows Vista and Windows Server 2008. Since both operating systems were developed from the same code base, they have a common servicing structure and thus ...


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

Related Events 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 Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


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 Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing