DHCP renew schedule

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
mpaczynski
DD-WRT Novice


Joined: 16 Apr 2022
Posts: 9

PostPosted: Thu Oct 27, 2022 6:47    Post subject: DHCP renew schedule Reply with quote
Hi DD-WRT team

Router details:
Firmware: DD-WRT v3.0-r50671 std (10/26/22)
Asus RT-AC87U


For some reason it has happened before on previous DD-WRT releases, that from time to time our router suddenly lost access to internet. The solution for it was to press button "DHCP Renew".
In a way it is simple solution, however when I am not home it give problem to my others.
I just updated it, but I do not expect to have our problem to be fixed.


Can you either:
- build functionality into software, that if for some reason internet access is missing, then router will renew DHCP automatically.
- or can you help me write CRONE job to "Renew DHCP" every day at 03:00
- if I set up router to restart every night at 03:00 - will it renew DHCP automatically ?

Thanks.
Michal
Sponsor
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1899

PostPosted: Thu Oct 27, 2022 16:34    Post subject: Reply with quote
It already should renew automatically, unless there is a bug.
_________________
"The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost

"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Thu Oct 27, 2022 17:24    Post subject: Reply with quote
Do we even have a button "DHCP Renew"?
_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1899

PostPosted: Thu Oct 27, 2022 17:59    Post subject: Reply with quote
Status-> WAN tab. There's also a DHCP Release button.
_________________
"The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost

"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Thu Oct 27, 2022 18:50    Post subject: Reply with quote
Ah WAN! Misread thinking LAN.

The best thing here is to administration tab keep alive tab and use the Schedule Reboot IMO.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1899

PostPosted: Thu Oct 27, 2022 19:45    Post subject: Reply with quote
That's one solution. Another is to script a forced renewal at a set interval that overrides ISP-set intervals. Of course, we could go deeper into the possibility of a problem DD-WRT side, but it could also be a problem ISP side as well. It is really tedious to tell at which version certain files are at in DD-WRT's busybox implementation without getting cross-eyed or pulling one's hair out, but I got curious about current status of FreshTomato's implementation at 1.34.1, and they removed a long-standing patch from Jon Zarate that was specifically introduced to help with problematic ISP dhcp issues, stating that upstream code not containing it was the reason <eyeroll> .... the patch was noted by "ZZZ" in their older, long-standing 1.25.1 busybox implementation, how the f*ck can you miss that?
_________________
"The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost

"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
mpaczynski
DD-WRT Novice


Joined: 16 Apr 2022
Posts: 9

PostPosted: Mon Oct 31, 2022 8:04    Post subject: WLAN Reply with quote
Hi All

Thank you for your feedback.
I noticed similar situation has happened on Saturday & Sunday. For some reason - we had no internet Saturday morning - so I wend to router and released and renewed IP from ISP - this fixed problem.
On Sunday however, I was "testing" option - if I am not home how to fix it. Easiest was to power off router together with fiber box. And plug them back again. This worked out, internet was back again.

-----------------
I also in tab "Keep alive" activated rooter restart every morning - not sure yet if that will work perfectly.

BTW:
I think this problem start happening after I applied latest rerelease mentioned in first post.

Can anybody check if there is no error in latest DD-WRT software ? maybe it is only my set up, not know .

Thanks.
mpaczynski
DD-WRT Novice


Joined: 16 Apr 2022
Posts: 9

PostPosted: Sun Nov 06, 2022 18:37    Post subject: Reply with quote
In case somebody will be reading this post and have similar problem.

I have found similar older post in this forum indicating similar issue (but software releases were much older).
The way it seems to work for me is adding to crone jobs:
01 1 * * * root kill -USR2 `cat /var/run/udhcpc.pid`
02 1 * * * root kill -USR1 `cat /var/run/udhcpc.pid`
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1899

PostPosted: Sun Nov 06, 2022 20:03    Post subject: Reply with quote
Something tells me it's the ISP's lease time involved. Of course, DD-WRT doesn't have the option to truncate DHCP(C) packets like Tomato does, among other things It's interesting that this is still a problem.
_________________
"The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost

"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum