Skip navigation

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

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_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Adapters\\{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" GUID
REG ADD HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Adapters\%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.



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish