JSI Tip 9991. How can I cause the DHCP client service to dynamically register more than one IP address for an interface?

Jerold Schulman

December 20, 2005

1 Min Read
ITPro Today logo in a gray background | ITPro Today

The default behavior of the DHCP client service is to dynamically register the first IP address for an interface.

If you wish to dynamically register multiple IP addresses for an adaptor this is configured with more than one IP address, or is logically multihomed, you must set the MaxNumberOfAddressesToRegister Value Name, a REG_DWORD data type, at HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParametersAdapters\{GUID} to the maximum number of IP addresses that you wish to be registered.

To determine the {GUID}, open a CMD.EXE window and type:

call InterfaceGUID Name GUID

Where Name is the interface name, like Local Area Connection, and GUID is a call directed environment variable that will contain the {GUID}.

Example

call InterfaceGUID "Local Area Connection" GUIDREG ADD HKLMSYSTEMCurrentControlSetServicesTcpipParametersAdapters%GUID% /V MaxNumberOfAddressesToRegister /T REG_DWORD /F /D 15

NOTE: You must restart your computer for the change to become effective.

NOTE: If you set MaxNumberOfAddressesToRegister to 0, no addresses are registered for this adapter.

NOTE: REG.EXE is built into Windows XP and Windows Server 2003, or installed on Windows 2000 from the Support Tools on the operating system CD-ROM.



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like