Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




1452 posts

Uber Geek
+1 received by user: 124

Trusted

Topic # 55443 4-Jan-2010 18:59
Send private message

Just wondering the reasoning behind having a 30 second DHCP WAN lease time?

I have  a RTA1320 -> WRT running Tomato.
This sends a renew request every 15 seconds.
Its about 80MB a month just for DHCP (send and receive) seems kinda weird.

logs look like this for pages and pages
Jan  4 18:48:21 Tomato daemon.info udhcpc[325]: Sending renew...
Jan  4 18:48:21 Tomato daemon.info udhcpc[325]: Lease of xxx.xxx.xxx.xxx obtained, lease time 30
Jan  4 18:48:36 Tomato daemon.info udhcpc[325]: Sending renew...
Jan  4 18:48:36 Tomato daemon.info udhcpc[325]: Lease of xxx.xxx.xxx.xxx obtained, lease time 30
Jan  4 18:48:51 Tomato daemon.info udhcpc[325]: Sending renew...
Jan  4 18:48:51 Tomato daemon.info udhcpc[325]: Lease of xxx.xxx.xxx.xxx obtained, lease time 30
Jan  4 18:49:06 Tomato daemon.info udhcpc[325]: Sending renew...
Jan  4 18:49:06 Tomato daemon.info udhcpc[325]: Lease of xxx.xxx.xxx.xxx obtained, lease time 30
Jan  4 18:49:21 Tomato daemon.info udhcpc[325]: Sending renew...
Jan  4 18:49:21 Tomato daemon.info udhcpc[325]: Lease of xxx.xxx.xxx.xxx obtained, lease time 30
Jan  4 18:49:36 Tomato daemon.info udhcpc[325]: Sending renew...
Jan  4 18:49:36 Tomato daemon.info udhcpc[325]: Lease of xxx.xxx.xxx.xxx obtained, lease time 30
Jan  4 18:49:51 Tomato daemon.info udhcpc[325]: Sending renew...
Jan  4 18:49:51 Tomato daemon.info udhcpc[325]: Lease of xxx.xxx.xxx.xxx obtained, lease time 30
Jan  4 18:50:07 Tomato daemon.info udhcpc[325]: Sending renew...
Jan  4 18:50:09 Tomato daemon.info udhcpc[325]: Lease of xxx.xxx.xxx.xxx obtained, lease time 30
Jan  4 18:50:24 Tomato daemon.info udhcpc[325]: Sending renew...
Jan  4 18:50:24 Tomato daemon.info udhcpc[325]: Lease of xxx.xxx.xxx.xxx obtained, lease time 30
Jan  4 18:50:39 Tomato daemon.info udhcpc[325]: Sending renew...
Jan  4 18:50:39 Tomato daemon.info udhcpc[325]: Lease of xxx.xxx.xxx.xxx obtained, lease time 30
Jan  4 18:50:54 Tomato daemon.info udhcpc[325]: Sending renew...
Jan  4 18:50:54 Tomato daemon.info udhcpc[325]: Lease of xxx.xxx.xxx.xxx obtained, lease time 30

Thanks




CPU: Intel 3770k| RAM: F3-2400C10D-16GTX G.Skill Trident X |MB:  Gigabyte Z77X-UD5H-WB | GFX: GV-N660OC-2GD gv-n660oc-2gd GeForce GTX 660 | Monitor: Qnix 27" 2560x1440

 

Want to be with an awesome ISP? Want $20 credit too? Use this link to sign up to BigPipe.


Create new topic
219 posts

Master Geek
+1 received by user: 77


  Reply # 287024 4-Jan-2010 22:22
Send private message

This is the way half bridge works... The dhcp lease time is kept short so that if your ip changes or you get disconnected the ip your wrt has can be updated without too much delay. It is your dsl modem enforcing this lease time.

You will not be billed for that traffic as it is only between the dsl modem and your wrt.

8020 posts

Uber Geek
+1 received by user: 386

Trusted
Subscriber

  Reply # 287035 4-Jan-2010 22:49
Send private message

If your ADSL line drops or reconnects (for whatever reason) and you do not have a static ip address from your ISP then your ISP will normally assign you a different external/wan ip address.

Assuming you are using PPPoA half bridge (called ip extension in the Dynalink) to connect the two devices (in order to avoid double NAT) the RTA exposes the wan ip address to the WRT via DHCP for use as the wan ip address in the WRT.

Basically when your isp assigned ip address changes the WRT will not pick up the change from the RTA until the DHCP renews.

The lower the lease the less "downtime" when your external/wan ip address changes for whatever reason.

I have mine set to 60min or so as if I'm not around or awake I don't care if it takes upto 30min to renew and if I am around and I lose connectively the first thing I would do it log into the router to check what's going on.

It's normal for DHCP to be renewed at "half time" into the lease.

 
 
 
 




1452 posts

Uber Geek
+1 received by user: 124

Trusted

  Reply # 287086 5-Jan-2010 08:07
Send private message

Cool thanks.

locky time.




CPU: Intel 3770k| RAM: F3-2400C10D-16GTX G.Skill Trident X |MB:  Gigabyte Z77X-UD5H-WB | GFX: GV-N660OC-2GD gv-n660oc-2gd GeForce GTX 660 | Monitor: Qnix 27" 2560x1440

 

Want to be with an awesome ISP? Want $20 credit too? Use this link to sign up to BigPipe.


1881 posts

Uber Geek
+1 received by user: 627

Trusted

  Reply # 287239 5-Jan-2010 18:47
Send private message

Is there a way on the RTA to lengthen the DHCP time? If so, I haven't found it in the GUI?

I'm using the PPP Passthru or whatever it's called, it's "half-bridge" mode.

The reason is my 5GT fills up with logs every time it gets a new DHCP lease (it's a firewall so it's not expecting this to happen even 5 minutes!)

It's not a big deal, but I'd love to set it for an hour or so.




It looks like I'm using an adblocker. I should consider whitelisting Geekzone in my adblocker or a subscription. The Quick Reply box will appear for me when Geekzone is whitelisted. Hooray for me! If I want to reply to this topic I should click on Compose Reply.


8020 posts

Uber Geek
+1 received by user: 386

Trusted
Subscriber

  Reply # 287419 6-Jan-2010 13:05
Send private message

I think it's under something like:


Advanced Config > Local network > DHCP Server Config > Lease Time

1881 posts

Uber Geek
+1 received by user: 627

Trusted

  Reply # 287429 6-Jan-2010 13:35
Send private message

Yea, there's DHCP settings there, but they're only if the box is truely acting as a DHCP server for clients.

Currently the options there are set for a Lease Time of 1 day.

I've pretty much looked at the whole GUI and can't find anything, I was hoping it might be some tricky tweak in the CLI. But I've been through that (bare bones!) interface as well and given up, it's all a bit undocumented.

Thanks for your suggestion though.

8020 posts

Uber Geek
+1 received by user: 386

Trusted
Subscriber

  Reply # 287455 6-Jan-2010 14:27
Send private message

When in half bridge the RTA gives the WAN IP address to the WRT via DHCP so should be affected by that setting.

Tried going through the quick setup wizard, you might be able to change it that way the UI is a bit quirky.



1452 posts

Uber Geek
+1 received by user: 124

Trusted

  Reply # 289582 13-Jan-2010 11:34
Send private message

as a heads up if you are running tomato version 1.24 or newer if it disconnects then reconnects every 30 seconds the following link will solve the problem.

http://www.genmay.com/showthread.php?t=822727

basically the following is the command to add were 192.168.0.1 is the adsl router.
iptables -I INPUT -p UDP -i vlan1 --dport 68 --sport 67 --source 192.168.0.1 -j ACCEPT




CPU: Intel 3770k| RAM: F3-2400C10D-16GTX G.Skill Trident X |MB:  Gigabyte Z77X-UD5H-WB | GFX: GV-N660OC-2GD gv-n660oc-2gd GeForce GTX 660 | Monitor: Qnix 27" 2560x1440

 

Want to be with an awesome ISP? Want $20 credit too? Use this link to sign up to BigPipe.


8020 posts

Uber Geek
+1 received by user: 386

Trusted
Subscriber

  Reply # 289679 13-Jan-2010 15:32
Send private message

FYI:

I think that DHCP renewing problem is fixed in a newer version of busybox (a component used in the Tomato build), should be fixed in 1.28 of the mainline Tomato but is fixed in various mods like Teddy Bears 1.27 ND USB version of the firmware.

Create new topic



Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

New Zealand government to create digital advisory group
Posted 16-Dec-2017 08:47


Australia datum changes means whole country moving 1.8 metres north-east
Posted 16-Dec-2017 08:39


UAV Traffic Management Trial launching today in New Zealand
Posted 12-Dec-2017 16:06


UFB connections pass 460,000
Posted 11-Dec-2017 11:26


The Warehouse Group to adopt IBM Cloud to support digital transformation
Posted 11-Dec-2017 11:22


Dimension Data peeks into digital business 2018
Posted 11-Dec-2017 10:55


2018 Cyber Security Predictions
Posted 7-Dec-2017 14:55


Global Govtech Accelerator to drive public sector innovation in Wellington
Posted 7-Dec-2017 11:21


Stuff Pix media strategy a new direction
Posted 7-Dec-2017 09:37


Digital transformation is dead
Posted 7-Dec-2017 09:31


Fake news and cyber security
Posted 7-Dec-2017 09:27


Dimension Data New Zealand strengthens cybersecurity practice
Posted 5-Dec-2017 20:27


Epson NZ launches new Expression Premium Photo range
Posted 5-Dec-2017 20:26


Eventbrite and Twickets launch integration partnership in Australia and New Zealand
Posted 5-Dec-2017 20:23


New Fujifilm macro lens lands in New Zealand
Posted 5-Dec-2017 20:16



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.