Compartilhar via


DefaultGateway

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.)

(Blank value.)

Description

An ordered list of gateways that can be used as the default gateway for this system. Packets are sent to the default gateway when they are destined for a subnet to which this computer is not connected, or for there is no specific route.

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 operational (See EnableDeadGWDetect and TcpMaxDataRetransmissions ).

If this entry contains a valid value, it overrides the value of DhcpDefaultGateway , which is configured by DHCP.

Change method

To change the value of this entry, use Network and Dial-up Connections. Right-click Local Area Connection , click Properties , click Internet Protocol (TCP/IP) , and click the Properties button. In the lower right corner, click the Advanced button, click the IP Settings tab, and use the Default gateways, in order of use section to change this value.

Related Entries

Cc959604.reltopic(en-us,TechNet.10).gif

EnableDeadGWDetect

Cc959604.reltopic(en-us,TechNet.10).gif

TcpMaxDataRetransmissions

Cc959604.reltopic(en-us,TechNet.10).gif

DhcpDefaultGateway