diff --git a/nanoFramework.System.Net/NetworkInformation/NetworkInterface.cs b/nanoFramework.System.Net/NetworkInformation/NetworkInterface.cs index 3c5e72f..2efceaa 100644 --- a/nanoFramework.System.Net/NetworkInformation/NetworkInterface.cs +++ b/nanoFramework.System.Net/NetworkInformation/NetworkInterface.cs @@ -209,8 +209,11 @@ public void EnableDhcp() { try { - _startupAddressMode = AddressMode.DHCP; - UpdateConfiguration((int)UpdateOperation.Dhcp); + if (_startupAddressMode != AddressMode.DHCP) + { + _startupAddressMode = AddressMode.DHCP; + UpdateConfiguration((int)UpdateOperation.Dhcp); + } } finally {