Share via


Enabling the DHCP Allocator

The following procedures show how to enable and manage the DHCP Allocator for the ICS feature.

To enable the DHCP Allocator

  1. Set the HKEY_LOCAL_MACHINE\Comm\ConnectionSharing\EnableDhcpAllocator registry key equal to a non-zero value.

  2. Set the HKEY_LOCAL_MACHINE\Comm\ConnectionSharing\PrivateInterface registry key to a list of private interfaces that you want to enable the DHCP allocator on.

    If the list contains multiple private interfaces, those interfaces all must have the same subnet value in their IP addresses.

To change the length of time for which the DHCP allocator assigns addresses

  • Set the HKEY_LOCAL_MACHINE\Comm\ConnectionSharing\DHCPLeaseTime registry key to the length of time that the allocator will assign addresses.

To keep an address in the address table set permanently

  • Set the HKEY_LOCAL_MACHINE\Comm\ConnectionSharing\Addresses\IP Address\Expires registry key equal to 0xFFFFFFFFFFFFFFFF.\

To provide additional DHCP options

  1. Set the HKEY_LOCAL_MACHINE\Comm\<Adapter>\DhcpAllocator\DhcpOptions registry key.

    In this registry key, <Adapter> indicates the name of the adapter on which the allocator will send the option. For example, if your device has an NE2000 compatible PCI card, you would type PCI\NE20001.

  2. Set the values for the additional DHCP option.

Note   You can add additional DHCP options, but you cannot override the values of DHCP allocator standard options.

The registry value name is a decimal number that represents the option. Option data can be any supported registry type. A string value is sent as Unicode. Use hexidecimal, or binary value, for an ANSI string.

The following example shows how to add option 252 that provides information about the automatic configuration file for a web proxy:

[HKEY_LOCAL_MACHINE\Comm\PCI\RTL81391\DhcpAllocator\DhcpOptions]

"252"=hex:68,74,74,70,3a,2f,2f,31,39,32,2e,31,36,38,2e,30,2e,31,3a,38,30,38,30,2f,70,72,6f,78,79,2e,70,61,63,00

See Also

Machine Name to IP Address Maps | Internet Connection Sharing Registry Settings | DHCP Allocator

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.