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
+1 received by user: 80

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
+1 received by user: 10


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



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)





Say what?

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)





Say what?

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

 
 
 
 

Shop now for Dyson appliances (affiliate link).
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








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.