Help and Support
 

powered byLive Search

Custom DHCP Client Identifiers for Windows NT

Article ID:172408
Last Review:February 23, 2007
Revision:2.2
This article was previously published under Q172408
On This Page

SUMMARY

A Dynamic Host Configuration Protocol (DHCP) client will normally use the media access control address of its network interface card (NIC) to identify itself to a DHCP server. Windows NT DHCP clients can also have client identifiers manually configured.

Back to the top

MORE INFORMATION

When DHCP clients request and renew IP addresses, they normally send their hardware type and media access control address to a DHCP Server as a unique identifier. This allows the DHCP server to track the allocation of addresses and allows administrators to reserve addresses for specific interfaces. This client identifier is sent as option 61 in the client's DHCP Discover and Request packets as described in RFC2132, "DHCP Options and BOOTP Vendor Extensions." In general, this identifier will be the media access control address of the network interface card requesting the address, but this is not required.

Most implementations of DHCP are simplified by allowing the Windows NT client to automatically specify their media access control address, but it is possible in Windows NT 4.0 to manually enter a client identifier. This allows an administrator to reserve an IP address for a DHCP client so the client will receive the same IP address even if its network card is replaced.

Implementing a user-defined DHCP client identifier requires Windows NT 4.0 SP2 or later. To manually configure a DHCP client identifier, perform the following steps:

WARNING: Using Registry Editor incorrectly can cause serious, system-wide problems that may require you to reinstall Windows NT to correct them. Microsoft cannot guarantee that any problems resulting from the use of Registry Editor can be solved. Use this tool at your own risk.
1.Start Registry Editor (Regedt32.exe) and select the following subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ 
<Adapter Name>'X'\Parameters\Tcpip.
							

where <Adapter Name> is the network adapter driver name and 'X' is the number of the adapter. For example, for an Intel Etherexpress Pro network adapter the <Adapter Name> is Epro so you might have an entry similar to Epro1.

In Windows 2000 the location is:
HKLM\System\CurrentControlSet\Services\TcpIp\Parameters\Interfaces\NICGUID
2.Click Add value from the Edit menu, and type the following information:
      Value Name: DhcpClientIdentifier
      Value Type: REG_DWORD
      Value Range: 0x0 - 0xFFFFFFFF
      Value Default: 0x0
						
3.Click OK, exit Registry Editor, and restart the system for the changes to take effect.

Back to the top

Creating a DHCP Server Reservation

A DHCP server can use a custom DHCP client identifier to reserve an IP address for a specific network interface card. If the NIC is replaced, the new NIC will receive the same IP address from the DHCP server. When a Windows NT DHCP client sends a client identifier to a DHCP server, it sends the identifier as 4 bytes, or 8 hexadecimal characters. The identifier is sent in groups of two hexadecimal characters, with these groups of two sent in reverse order. If the identifier is less than 8 hexadecimal characters, then zeros are padded at the end of the identifier. For example:
Custom Client Identifier      Client Reservation on DHCP Server

12345678                      78563412
123456                        56341200
1234                          34120000
1234567                       67452301
12345                         45230100
123                           23010000
A18F42                        428FA100
CF432                         32F40C00
C32D1BE                       BED1320C
				

Refer to the online Help in DHCP Manager under the section "Managing Client Reservations" and pages 206-207 of the Windows NT 4.0 Server Networking Guide.

Back to the top

REFERENCES

For more information on DHCP reservations, see RFC1700 and RFC2131.

RFCs may be obtained through the Internet as follows:

Paper copies of all RFCs are available from the NIC, either individually or on a subscription basis (for more information contact NIC@NIC.DDN.MIL (mailto:NIC@NIC.DDN.MIL)). Online copies are available via FTP or Kermit from NIC.DDN.MIL as rfc/rfc####.txt or rfc/rfc####.PS (#### is the RFC number without leading zeroes).

Back to the top


APPLIES TO
Microsoft Windows 2000 Server
Microsoft Windows 2000 Advanced Server
Microsoft Windows 2000 Professional Edition
Microsoft Windows NT Workstation 4.0 Developer Edition
Microsoft Windows NT Server 4.0 Standard Edition

Back to the top

Keywords: 
kbinfo kbnetwork KB172408

Back to the top

Article Translations

 

Related Support Centers

Other Support Options

  • Need More Help?
    Contact a Support professional by Email, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.