Tuesday, 20 August 2013

Purpose of redundant TcpIp configuration keys in Windows Registry

Purpose of redundant TcpIp configuration keys in Windows Registry

In Windows, each network interface is enumerated with a particular {GUID}
which are then assigned connection names (e.g. "Local Area Connection").
Particular IP setup information such as DHCP vs static are stored in the
CurrentControlSet\Services key of the registry. There are two places some
of this information is stored:
HKLM\SYSTEM\CurrentControlSet\services\{GUID}\Parameters\Tcpip
and
HKLM\SYSTEM\CurrentControlSet\services\Tcpip\Parameters\Interfaces\{GUID}
Both keys share certain values such as EnableDHCP or IPAddress. When
issuing netsh commands on the active session, it is the second key whose
values are updated immediately.
My question is what is the difference between these two keys, and when
does Windows use one or the other for configuring the network connections?

No comments:

Post a Comment