Share via


DhcpOptions (Windows Embedded CE 6.0)

1/6/2010

You can define specific DhcpOptions values. If an interface has a DHCP client enabled, then DhcpOptions values are stored in the registry in HKEY_LOCAL_MACHINE\Comm\Adapter Name\Parms\Tcpip\DhcpOptions. If you set a particular value under this key, the DHCP client requests the specified option from the server and stores the response as a binary value under this key. For example, creating the value names 1, 3, and 5 under the DhcpOptions subkey causes DHCP to query for the address mask, router, and domain name options.

Names of binary values under this key must be no longer than three characters each.

Note

You must create values under this key that have the names of the options to send. These are binary values between 0 and 255 as described in RFC 2132. The default value under DhcpOptions must also be set; otherwise, DHCP internal default options are sent.

By default, Windows Embedded CE requests at least the following options from the DHCP server:

  • Subnet mask
  • Default gateway
  • WINS
  • DNS

If an interface is a private NAT and the DHCP Allocator is enabled, then DhcpOptions values are stored in HKEY_LOCAL_MACHINE\Comm\Adapter Name\DhcpAllocator\DhcpOptions. These options are sent by the DHCP Allocator to clients on the private side of the network.

See Also

Concepts

Additional DHCP Settings