Any ways to connect to certain ip range?
Any ways to connect to certain ip range?
I'm currently using aztech dsl 605ew with routertech 2.9 firmware on a dynamic ip. On my isp there are certain that gives better download speed, is there any way for me to connet with this ip range. Usually i just disconnet and reconnect until i get these ip. Plz help
I’m guessing that your ISP has a number of gateway servers that you can connect through and that their DHCP server gives out addresses dynamically so which gateway you connect to is completely down to your ISP DHCP server (some ISPs get better throughput on some gateways than others, could be hardware, could be routing, could be loading etc). Your alternative is to get a static IP address if your ISP supports this.
I suppose theoretically you could write a script that runs on the router that could compare your given IP address to a list, if it is not in the list then it reboots until it gets a match. I wouldn’t know how to write a script like this.
I suppose theoretically you could write a script that runs on the router that could compare your given IP address to a list, if it is not in the list then it reboots until it gets a match. I wouldn’t know how to write a script like this.
- studioeng
- Experienced
- Posts: 454
- Joined: Mon Oct 23, 2006 11:59 pm
- Location: Dorset, England
- Contact:
Not sure if this is a start for what your after?
If this works out, I shall try and rewrite it for an array of IPs
Code: Select all
#!/bin/bash
#this script needs to be run as root, as it does perform a reboot!
#wait for router to finish booting and connect
sleep 60
#download current ip address
wget www.whatismyip.com/automation/n09230945.asp
clear
IPADDRESS=`cat n09230945.asp`
#enter your required ip address in the following line
REQUIRED=0.0.0.0
echo "Required IP: $REQUIRED"
echo "Current IP: $IPADDRESS"
#compare current to required ip address
if [ $IPADDRESS == $REQUIRED ]; then
#success
echo "We have a match!"
else
echo "Reconnect required."
#reboot router (uncomment following line to enable reboot)
#reboot
fi
rm -Rf n09230945.asp