CaduNunes79 / netprofilesmod

Automatically exported from code.google.com/p/netprofilesmod
0 stars 0 forks source link

Activating a DHCP profile might configure two default gateways on Windows Vista and newer #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When a profile configures DHCP and the default gateway assigned by the DHCP 
server differs from the previously used default gateway, the IP configuration 
will contain two default gateways. One gateway equals to the previously used 
and the second will by assigned by DHCP.
This behavior has been reproduced on Windows 7 x64 and will probably only 
affect Windows Vista and newer.

Original issue reported on code.google.com by u...@urx.ch on 15 Aug 2012 at 3:37

GoogleCodeExporter commented 9 years ago
This issue was updated by revision 9b375aec99e8.

A workaround has been implemented that clears the default gateway before 
activating DCHP.
The problem is discussed in the comments on 
http://msdn.microsoft.com/en-us/library/windows/desktop/aa393301(v=vs.85).aspx 
and 
http://msdn.microsoft.com/en-us/library/windows/desktop/aa390378(v=vs.85).aspx
This workaround has to be tested for compatibility with Windows XP and also if 
the network adapter is disconnected or has no IP address configured.

Original comment by u...@urx.ch on 15 Aug 2012 at 3:45

GoogleCodeExporter commented 9 years ago
The workaround is also compatible with Windows XP, disabled and disconnected 
adapters are ignored anyway and are not affected from the change.

Original comment by u...@urx.ch on 23 Sep 2012 at 10:24

GoogleCodeExporter commented 9 years ago
This issue was updated by revision 11895384164d.

The previous workaround did not solve all possible situations where 2 default 
gateways might be active after enabling DCHP. The new workaround checks for the 
presence of more than one default gateways after enabling DCHP and fixes it if 
necessary.

Original comment by u...@urx.ch on 4 Nov 2012 at 6:13