I’m also trying to use the following code on my Chipworkx :
var interfaces = NetworkInterface.GetAllNetworkInterfaces(); if (!interfaces.IsDhcpEnabled) interfaces.EnableDhcp(); else interfaces.RenewDhcpLease();
But the RenewDhcpLease throw me an Exception after a while (that seems to be a time out…
DHCP has been set with MFDEPLOY, and when I ask the NetworkInterface boot configuration, it show me :
DHCP : YES
IP : 0.0.0.0
MASK : 0.0.0.0
GATEWAY : 0.0.0.0
Which are effectively the params I entered in MFDeploy.
Does it mean that something goes wrong with the way I’m trying to use it ?
Is dynamic DNS disabled ? I also tried with my DNS Address also but it does not seem to be related to…
It seems like if no DHCP would be found, however one exists, and all my other machines are in DHCP mode…I also checked that free addresses were available on the DHCP. It is OK.
Thanks for your feedback