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 
Niel
3267 posts

Uber Geek

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!




matt1553
30 posts

Geek


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

PenultimateHop
637 posts

Ultimate Geek

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.



Sinn
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)


Sinn
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)


hpj2007
117 posts

Master Geek
Inactive user


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

weblordpepe
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





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









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.