Enabling the DHCP Allocator (Windows CE 5.0)

Send Feedback

The following procedures show how to enable and manage the DHCP Allocator included with ICS.

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 enable the DHCP Allocator

  1. Set the HKEY_LOCAL_MACHINE\Comm\ConnectionSharing\DhcpAllocationStartRange registry key equal to the lowest IP address in a range of addresses that the DHCP Allocator should assign. This value should not contain subnet information. It should contain only the least significant bits in the IP address range.

    For more information, see Connection Sharing Registry Settings.

  2. Set the HKEY_LOCAL_MACHINE\Comm\ConnectionSharing\DhcpAllocationEndRange registry key equal to the highest IP address in a specified range that the DHCP Allocator should assign. This value should not contain subnet information. It should contain only the least significant bits in the IP address range.

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 | ICS Registry Settings | DHCP Allocator

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.