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.


1557 posts

Uber Geek
+1 received by user: 149

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

 

 


Create new topic
221 posts

Master Geek
+1 received by user: 81


  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.

8025 posts

Uber Geek
+1 received by user: 387

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.



1557 posts

Uber Geek
+1 received by user: 149

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

 

 


1976 posts

Uber Geek
+1 received by user: 733

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.


8025 posts

Uber Geek
+1 received by user: 387

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

1976 posts

Uber Geek
+1 received by user: 733

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.

8025 posts

Uber Geek
+1 received by user: 387

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.



1557 posts

Uber Geek
+1 received by user: 149

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

 

 


8025 posts

Uber Geek
+1 received by user: 387

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 »

Hawaiki Transpacific cable ready-for-service
Posted 20-Jul-2018 11:29


Microsoft Dynamics 365 Business Central launches
Posted 10-Jul-2018 10:40


Spark completes first milestone in voice platform upgrade
Posted 10-Jul-2018 09:36


Microsoft ices heated developers
Posted 6-Jul-2018 20:16


PB Technologies charged for its extended warranties and warned for bait advertising
Posted 3-Jul-2018 15:45


Almost 20,000 people claim credits from Spark
Posted 29-Jun-2018 10:40


Cove sells NZ's first insurance policy via chatbot
Posted 25-Jun-2018 10:04


N4L helping TAKA Trust bridge the digital divide for Lower Hutt students
Posted 18-Jun-2018 13:08


Winners Announced for 2018 CIO Awards
Posted 18-Jun-2018 13:03


Logitech Rally sets new standard for USB-connected video conference cameras
Posted 18-Jun-2018 09:27


Russell Stanners steps down as Vodafone NZ CEO
Posted 12-Jun-2018 09:13


Intergen recognised as 2018 Microsoft Country Partner of the Year for New Zealand
Posted 12-Jun-2018 08:00


Finalists Announced For Microsoft NZ Partner Awards
Posted 6-Jun-2018 15:12


Vocus Group and Vodafone announce joint venture to accelerate fibre innovation
Posted 5-Jun-2018 10:52


Kogan.com to launch Kogan Mobile in New Zealand
Posted 4-Jun-2018 14:34



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.