What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Is there a command to 'renew' the IP Address?

Gaz

New Around Here
Hi,

Is there a way to tell the router to request/renew the ISP provided IP Address?

Currently I just disable the internet connection for 1 minute and then renable it and I normally get a new IP.

Is there an easier/better way than this and is there a way this can be scheduled. so for example it does it every night or once a week for example?

I know I can schedule reboots but I don't wish to lose local connectivity.

Love the FW and have been a long time user.

Hope someone can help. Thanks in advance.

G
 
I use this when im going to change routers temp
if i dont use this i have to wait 60mins for a lease

Release:
killall -SIGUSR2 udhcpc

Renew:
killall -SIGUSR1 udhcpc
 
Thats great. Im confused as to where i enter that though. I'm sure there used to be a field where you could enter commands but now I cant seem to find it.

Is there any way to schedule this?

Thanks
 
Thats great. Im confused as to where i enter that though. I'm sure there used to be a field where you could enter commands but now I cant seem to find it.

Is there any way to schedule this?

Thanks
Those commands are applied via telnet or another client like Putty.
As for Scheduling it, you can write a cron job .

Here is an example;

create a script on Jffs/scripts/
save it as renew-isp-ip.sh

add the following code to the script:

#!/bin/sh

killall -SIGUSR1 udhcpc


then go to jffs/scripts/services-start

and add this code for the cron job

cru a renew-isp-ip "* 1 * * * /jffs/scripts/renew-isp-ip.sh" # renews Isp ip every day at 1am


Save it and reboot
the above cron example job will renew your ipp every day at i am
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top