I need a small script which can automatically do a DHCP release and DHCP renew on a Windows XP computer at regular intervals. e.g 15 minutes. This time interval should be user specified.
In case the ISP server puts you on a timeout(lets say for 10 sec) the script should keep trying again after 10 sec until it gets a successful DHCP renew.
The script should work on the D-Link cable modem model number DL-514. The default gateway is 192.168.0.1
So the overall result of the script should be to get a new IP address from the ISP at a specified time interval by doing a DHCP release and DHCP renew procedure.
Preferably the script should be compatible with .net because later on I would like it to be integrated with a .net code.
Also keep in mind that the DLink router doesn't have a telnet support. It only has web based interface support.
Please keep in mind that ipconfig /release and ipconfig /renew command will not work since that command only changes the IPs for the LAN and not for the WAN.
You have to make the request from the router or the cable model provided by the ISP.