Implementing User Classes
User classes allow you to apply a particular configuration of DHCP options to any subset of DHCP clients you define. To implement a user class, you first define the class at the DHCP server by assigning an ID and set of options for the class. Then you assign selected client computers to the class by using the Ipconfig /setclassid command. When these clients subsequently communicate with DHCP servers, they announce their class ID and inherit the options of that class.
A custom user class is helpful when you need to assign distinct options to distinct sets of client computers. For example, your network might require that clients with the security clearance to bypass the company firewall be assigned a unique default gateway. In this example, you could configure options to distribute the unique default gateway to the security-exempt class.
To create a custom or new user class, right-click the DHCP server icon in the DHCP console and select Define User Classes.
You then need to set an ID string for the class. You designate this class ID string when you first create the class in the DHCP console. After defining a new class and specifying an ID string for that class, you can then set desired options for that class.
Finally, for the desired computers to inherit the options of the new class, you need to set the class ID of appropriate client computers to match the ID you have defined for that class at the DHCP server. You can achieve this task by executing the Ipconfig /setclassid command at a command prompt at each client computer. The user class option permits only one class ID to be used for identifying clients. In other words, each client computer can be identified as a member of only a single user class at the DHCP server.
To create a new user or vendor class, complete the following steps:
- Open the DHCP console.
- In the console tree, select the applicable DHCP server.
- JFrom the Action menu, select one of the following:
- To create a new user class, select Define User Classes.
- To create a new vendor class, select Define Vendor Classes.
- JClick Add.
The New Class dialog box opens. - JIn the Display Name text box, provide a friendly name for the class. Optionally, fill in the Description text box.
- JIn the ID text box, set the same binary or ASCII string that matches the DHCP class ID string that is either implemented or set at member clients.
- Click OK and then Close to return to the DHCP console.
To set DHCP class ID information at a client computer, complete the following steps:
- JAt a DHCP-enabled client computer running Windows 2000, Microsoft Windows XP, or Windows Server 2003, open a command prompt.
- JUse the Ipconfig /setclassid command to set the DHCP class ID the client uses
when obtaining its lease from the DHCP server.
You can use the Ipconfig /setclassid command as demonstrated in the following example command, which sets an ASCII string (MyNewClassId) as the DHCP class ID string for the local area network (LAN) connection in use at the client computer:C:\>ipconfig /setclassid "Local Area Connection" MyNewClassId Windows IP Configuration Successfully set the class id for adapter Local Area Connection.
Note You can use the Ipconfig /showclassid <adapter number> command to display all the DHCP class IDs allowed by the DHCP server for any network adapter installed on your computer.
In this tutorial:
- Configuring DHCP Servers and Clients
- Configuring the DHCP Server
- Benefits of DHCP
- Installing the DHCP Server Service
- Authorizing the Server
- Configuring Scopes
- IP Address Range
- Exclusion Ranges
- Using the 80/20 Rule for Servers and Scopes
- Creating Reservations
- Assigning DHCP Options
- Activating a Scope
- Networking Configuring the Client
- Migrating from APIPA or Alternate Configurations
- Migrating ICS Clients
- Installing and Configuring a DHCP Server
- Adding a DHCP Server Role
- Configuring a DHCP Client
- Managing DHCP in Windows Networks
- Changing DCHP Server Status
- Services Console
- Managing DHCP from a Command Line
- Connecting Clients to Remote DHCP Servers
- Using Superscopes
- Changing the Addressing of a Subnet
- Backing Up the DHCP Server Database
- Performing a Manual Backup
- Manually Compacting a DHCP Server
- Using Options Classes
- Implementing User Classes
- Performing a Manual Backup of the DHCP Server
- Creating a New Superscope
- Configuring DHCP Servers to Perform DNS Updates
- Configuring Dynamic Updates with DHCP
- Using the DnsUpdateProxy Security Group
- Adding Members to the DnsUpdateProxy