Share via


DhcpDefaultGateway

HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\ interface-name

Data type

Range

Default value

REG_MULTI_SZ

IPAddress[ IPAddress...] (A-space delimited list of dotted decimal IP addresses.)

(There is no default value for this entry. DHCP configures the value.)

Description

Specifies an ordered list of gateways that can be used as the default gateway for this system. The Dynamic Host Configuration Protocol (DHCP) configures the list. Packets are sent to the default gateway when they are destined for a subnet to which this computer is not connected, or for which there is no specific destination.

At any time, only one gateway is the default gateway. The other gateways are used, in the order specified, when the system detects that the current default gateway is not operating (See the EnableDeadGWDetect and TcpMaxDataRetransmissions entries.)

If the DefaultGateway entry contains a valid, non-blank value, it takes precedence over this entry. The DefaultGateway entry is configured by the user, not by DHCP.

Cc959606.tip(en-us,TechNet.10).gif Tip

This entry is associated with a DHCP option. Configuration data for DHCP options is stored in each HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Dhcp\Parameters\Options\ Option# subkey. The path to this entry is stored in the value of the RegLocation entry in the associated Option# subkey.

To find the DHCP option associated with this entry, use Regedit.exe. From the Edit menu, click Find, and enter the following text: SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\?\DhcpDefaultGateway and select only the Data checkbox.

Cc959606.caution(en-us,TechNet.10).gif Caution

The DHCP client service adds this entry to the registry when the service is enabled. The DHCP client service maintains it for internal use. Do not delete this entry or change its value.