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.


View this topic in a long page with up to 500 replies per page Create new topic
1 | 2 
3267 posts

Uber Geek
+1 received by user: 77

Trusted

  # 111998 21-Feb-2008 07:46
Send private message

Config your modem to disconnect with 10 minutes of no use and config your PC with e.g. Easy-E-Check that checks your e-mail every 15 minutes which will force a reconnect.

The timer will work well, keeping in mind the minimum off time is 1 minute on a digital one and 15 minutes on a mechanical one.

An electronic engineer can wire something up for you to briefly disconnect the phone line at a fixed interval.  It is easy, but don't expect it for $10.  Probably towards $50.  This will give you a short outage, because the modem is already booted and only have to reconnect.




You can never have enough Volvos!


20 posts

Geek
+1 received by user: 2


  # 112019 21-Feb-2008 10:04
Send private message

I've got a script that'll tell your modem to renew it's public IP adress every 15 minutes. But in order for it to work, you'll need a router that supports telnet access, has a linux operating system that recognises these commands, and that supports shell scripts.

while true
do
/sbin/dhcpc-release
sleep 1
/sbin/dhcpc-renew
sleep 900
done

Telnet into your modem, then paste the script i've given you into the telnet window, press enter, and then close the telnet window.

 
 
 
 


637 posts

Ultimate Geek
+1 received by user: 2

Trusted

  # 112020 21-Feb-2008 10:07
Send private message

matt1553: I've got a script that'll tell your modem to renew it's public IP adress every 15 minutes. But in order for it to work, you'll need a router that supports telnet access, has a linux operating system that recognises these commands, and that supports shell scripts.

while true
do
/sbin/dhcpc-release
sleep 1
/sbin/dhcpc-renew
sleep 900
done

Telnet into your modem, then paste the script i've given you into the telnet window, press enter, and then close the telnet window.
I think your assumption will run afoul in two areas:

1) You're assuming that the modem is using DHCP to get an IP address on the WAN interface.  In a PPP environment, this is rather unlikely.
2) Closing the telnet window, unless the process is running nohup and backgrounded, will kill the script.

103 posts

Master Geek


  # 112045 21-Feb-2008 11:32
Send private message

After reading all this, I am intrigued as to why you would possibly want to cycle your IP address all the time...? care to shed some light on this? =o)


103 posts

Master Geek


  # 112046 21-Feb-2008 11:32
Send private message

After reading all this, I am intrigued as to why you would possibly want to cycle your IP address all the time...? care to shed some light on this? =o)


117 posts

Master Geek


  # 112054 21-Feb-2008 12:04
Send private message

Heres another idea:
Use a power switch timer to power your DSL modem off and on every 15 mins ;).

460 posts

Ultimate Geek
Inactive user


  # 112218 22-Feb-2008 02:35
Send private message

Thats what I said :P

Although technically there must be a much better way of doing it. Broadband modems from Xtra all run linux. You could either telnet or SSH into the router and see what commands are available. On mine, the multi-PC modem (604t) it has:
Built-in commands:
-------------------
        . : bg break builtin cd chdir continue eval exec exit export
        false fc fg hash help jobs kill local pwd read readonly return
        set setvar shift times trap true type ulimit umask unset wait



Currently defined functions (busybox):
        [, ash, busybox, cat, chgrp, chmod, chown, cp, date, dd, df, echo,
        false, free, grep, hostname, id, ifconfig, init, insmod, kill,
        ln, login, ls, lsmod, mkdir, modprobe, mount, mv, passwd, ping,
        ps, pwd, reboot, rm, rmmod, route, sh, sleep, sync, tar, test,
        tftp, touch, true, tty, umount, wget, whoami, yes




1 | 2 
View this topic in a long page with up to 500 replies per page Create new topic



Switch your broadband provider now - compare prices


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 »

Xero announces new smarter tools, push into the North American market
Posted 19-Jun-2019 17:20


New report by Unisys shows New Zealanders want action by social platform companies and police to monitor social media sites
Posted 19-Jun-2019 17:09


ASB adds Google Pay option to contactless payments
Posted 19-Jun-2019 17:05


New Zealand PC Market declines on the back of high channel inventory, IDC reports
Posted 18-Jun-2019 17:35


Air New Zealand uses drones to inspect aircraft
Posted 17-Jun-2019 15:39


TCL Electronics launches its first-ever 8K TV
Posted 17-Jun-2019 15:18


E-scooter share scheme launches in Wellington
Posted 17-Jun-2019 12:34


Anyone can broadcast with Kordia Pop Up TV
Posted 13-Jun-2019 10:51


Volvo and Uber present production vehicle ready for self-driving
Posted 13-Jun-2019 10:47


100,000 customers connected to fibre broadband network through Enable
Posted 13-Jun-2019 10:35


5G uptake even faster than expected
Posted 12-Jun-2019 10:01


Xbox showcases 60 anticipated games
Posted 10-Jun-2019 20:24


Trend Micro Turns Public Hotspots into Secure Networks with WiFi Protection for Mobile Devices
Posted 5-Jun-2019 13:24


Bold UK spinoff for beauty software company Flossie
Posted 2-Jun-2019 14:10


Amazon Introduces Echo Show 5
Posted 1-Jun-2019 15:32



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.