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.




1804 posts

Uber Geek

Trusted

#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

 

 


Create new topic
222 posts

Master Geek


  #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.

8035 posts

Uber Geek

Trusted

  #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.

 
 
 
 




1804 posts

Uber Geek

Trusted

  #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

 

 


2190 posts

Uber Geek

Trusted

  #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.




I hate you.


8035 posts

Uber Geek

Trusted

  #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

2190 posts

Uber Geek

Trusted

  #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.

8035 posts

Uber Geek

Trusted

  #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.

 
 
 
 




1804 posts

Uber Geek

Trusted

  #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

 

 


8035 posts

Uber Geek

Trusted

  #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 and LinkedIn »



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 »

Withings launches three new devices to help monitor heart health from home
Posted 13-Feb-2020 20:05


Auckland start-up Yourcar matches new car buyers with dealerships
Posted 13-Feb-2020 18:05


School gardens go high tech to teach kids the importance of technology
Posted 13-Feb-2020 11:10


Malwarebytes finds Mac threats outpace Windows for the first time
Posted 13-Feb-2020 08:01


Amazon launches Echo Show 8 in Australia and New Zealand
Posted 8-Feb-2020 20:36


Vodafone New Zealand starts two year partnership with LetsPlay.Live
Posted 28-Jan-2020 11:24


Ring launches indoor-only security camera
Posted 23-Jan-2020 17:26


New report findings will help schools implement the digital technologies curriculum content
Posted 23-Jan-2020 17:25


N4L to upgrade & support wireless internet inside schools
Posted 23-Jan-2020 17:22


Netflix releases 21 Studio Ghibli works
Posted 22-Jan-2020 11:42


Vodafone integrates eSIM into device and wearable roadmap
Posted 17-Jan-2020 09:45


Do you need this camera app? Group investigates privacy implications
Posted 16-Jan-2020 03:30


JBL launches headphones range designed for gaming
Posted 13-Jan-2020 09:59


Withings introduces ScanWatch wearable combining ECG and sleep apnea detection
Posted 9-Jan-2020 18:34


NZ Police releases public app
Posted 8-Jan-2020 11:43



Geekzone Live »

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


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



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.