Cron job udhcpc on WRT54GL

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
Couin
DD-WRT Novice


Joined: 11 Sep 2013
Posts: 13
Location: France

PostPosted: Tue Jan 09, 2024 21:54    Post subject: Cron job udhcpc on WRT54GL Reply with quote
Hi and happy new year Smile

My ISP, through the "infrastructure operator", requires DHCP configuration on WAN side of router, event if the IP never change.
But when the DHCP server is down, the connexion fails (the DHCP lease is 5 minutes).

I can set a static IP configuration, but the "infrastructure operator" authenticates the routeur with its MAC address and requires DHCP discover request.

If in Administration, Commands, I run
Code:
udhcpc -q -n -t 5 -T 10 -i vlan1 -s /dev/null -r MY_IP_ADDRESS >/dev/null 2>&1


I get connection up for one DHCP lease.

So I would add a CRON job each 3 minutes :
Code:
*/3 * * * * udhcpc -q -n -t 5 -T 10 -i vlan1 -s /dev/null -r MY_IP_ADDRESS >/dev/null 2>&1


Save and apply, but it does nothing, like if the CRON job was not handled.

Is there something I miss ?

Thanks Smile
Couin

_________________
WRT54GL 1.1 - DD-WRT v24-3.0 b44715
Sponsor
bushant
DD-WRT Guru


Joined: 18 Nov 2015
Posts: 2038

PostPosted: Tue Jan 09, 2024 22:14    Post subject: Reply with quote
I believe you need to be root

Code:
*/3 * * * * root udhcpc -q -n -t 5 -T 10 -i vlan1 -s /dev/null -r MY_IP_ADDRESS >/dev/null 2>&1


If you are running 44715 that is old and unsupported.

https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/2024/

_________________
Forum Guide Lines (with helpful pointers about how to research your router, where and what firmware to download, where and how to post and many other helpful tips!)
How to get help the right way

Before asking for help - Read the forum guidelines AND Upgrade DD-WRT!
Adblock by eibgrad (1.1M blocked) + Blocklist Collection

dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1959

PostPosted: Tue Jan 09, 2024 22:27    Post subject: Reply with quote
https://wiki.dd-wrt.com/wiki/index.php/Linksys_WRT54GL

https://ftp.dd-wrt.com/dd-wrtv2/downloads/betas/2024/01-02-2024-r54682/broadcom/

_________________
"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
Couin
DD-WRT Novice


Joined: 11 Sep 2013
Posts: 13
Location: France

PostPosted: Tue Jan 09, 2024 23:21    Post subject: Reply with quote
dale_gribble39 wrote:
https://ftp.dd-wrt.com/dd-wrtv2/downloads/betas/2024/01-02-2024-r54682/broadcom/
Thanks ! Will it be 100% compatible (not brick the router) with mine (excepted MEGA, I understand I'd not choose it).

What would gives more, this version, in compare with 44715 ?

Because as I would say "if it runs like you need, don't touch !" Smile

_________________
WRT54GL 1.1 - DD-WRT v24-3.0 b44715
Couin
DD-WRT Novice


Joined: 11 Sep 2013
Posts: 13
Location: France

PostPosted: Tue Jan 09, 2024 23:22    Post subject: Reply with quote
bushant wrote:
I believe you need to be root

Code:
*/3 * * * * root udhcpc -q -n -t 5 -T 10 -i vlan1 -s /dev/null -r MY_IP_ADDRESS >/dev/null 2>&1
Thanks, it looks running now Smile

bushant wrote:
If you are running 44715 that is old and unsupported.
I don't understand, unsupported by ? The router ? In the "Router database" of dd-wrt.com website, the only purpose is this :


router database.jpg
 Description:
 Filesize:  64.96 KB
 Viewed:  401 Time(s)

router database.jpg



_________________
WRT54GL 1.1 - DD-WRT v24-3.0 b44715
bushant
DD-WRT Guru


Joined: 18 Nov 2015
Posts: 2038

PostPosted: Tue Jan 09, 2024 23:31    Post subject: Reply with quote
The answer is in front of you on that same page!

Couin
DD-WRT Novice


Joined: 11 Sep 2013
Posts: 13
Location: France

PostPosted: Tue Jan 09, 2024 23:35    Post subject: Reply with quote
Ooops I not scrolled so did not saw Embarassed (Also, the disclaimer before the search input would be better).
_________________
WRT54GL 1.1 - DD-WRT v24-3.0 b44715
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware 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