Geekzone: technology news, blogs, forums
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


635 posts

Ultimate Geek
Inactive user

#24042 13-Jul-2008 22:14
Send private message

Hi folks,
I have a odd problem with script. 

But first some background, my setup is this:

internet>--<302G>--<DD-WRT Router>--<PC>

The problem is that when my modem disconnects, and subsequently reconnects (which happens in the space of a few seconds) the script is not detecting the new IP and therefore not running renew DHCP.  

With my very basic skills, i have worked out that, for some reason after the modem disconnects and reconnects, I can still ping the old gateway address, yet I cant ping google (IP or name). 

I looked closer at what the DD-WRT is getting from my modem in half bridge:  

WAN Config 
IP Address : 
Subnet mask : 
Gateway : 
DNS1 : 
DNS2 :  

Notice how the Ip Address and the gateway are the same? I am not sure if they are the meant to be the same, but I think that is why the always on script (which tests if the connection is up by pinging the gateway) can still ping the gateway, even if the modem has since disconnected and got a new IP. Does anyone know if (a) I have screwed something up or (b) its behaving this way by design?  

The script:  

LAN Setup 

MAC Address00:06:25:C4:81:EF  
IP Address192.168.1.1  
Subnet Mask255.255.255.0  
Local DNS0.0.0.0  

WAN Connection Type : Auto Config - DHCP  
Router Name : DD-WRT 
Host Name : Geek 
Domain Name :  

Router IP Local Address : 

Local DNS:  
Network Address Server Settings (DHCP) DHCp Type : DHCP Server DHCP Server : Enable 
Start IP Address : Static DNS1: Static DNS2:  

If anyone who can help needs more info please just ask!!! :D Thanks in advance,  

PS: And yes I could just make the script ping one of the DNS servers, but I would like to know why its not working the way its designed!? :D :D :D
PPS: I notice the gateway address is not defined in the 302G either

Create new topic

635 posts

Ultimate Geek
Inactive user

  #147608 13-Jul-2008 22:43
Send private message

Things get even more interesting if I use my Linksys AM300 Modem instead of the Dlink 302G.

When using the AM300 it displays a Gateway address that is different to my IP:

PPP Login:Up
Internet IP Address:
Internet Netmask:
Internet Gateway:

Then in my DD-WRT instead of the gateway and IP being the same I get:
IP Address 
Subnet Mask 
DNS 1 
DNS 2 

That creates a whole new question - why is the gateway listed by the AM300 different to what the DD-WRT router shows? Maybe something to do with having to be on the same subnet?



Free kids accounts - trade shares and funds (NZ, US) with Sharesies (affiliate link).

635 posts

Ultimate Geek
Inactive user

  #147612 13-Jul-2008 22:49
Send private message

Interestingly the script works with the AM300, so the problem lies squarly with the Dlink 302G and it not passing any form of gateway address to the DD-WRT router......

2036 posts

Uber Geek


  #148720 17-Jul-2008 02:24
Send private message

It should not use "Auto Config - DHCP" for the WAN, must always be PPPoA. I would say clear it to factory default and start again, perhaps test any NAT port forwarding or DMZ settings you can find instead of half-bridge.

Time to find a new industry!


635 posts

Ultimate Geek
Inactive user

  #148729 17-Jul-2008 07:22
Send private message

No it shouldnt - the modem is in half bridge mode, it terminates the PPPoA connection and then passes the real world IP (via DHCP) to the Router.

979 posts

Ultimate Geek

Lifetime subscriber

  #151345 25-Jul-2008 16:11
Send private message

The free via xtra 302g in half bridge is poor at best I remember trialing several we ended up using a US Robotics USR9105 which worked out to be a very good router for half bridge mode.  Nowadays I would just get a Draytek Vigor 110 ADSL modem (yes its a real modem) read here and here

Create new topic

News and reviews »

Synology Introduces BeeStation
Posted 23-Feb-2024 14:14

New One UI 6.1 Update Brings Galaxy AI to More Galaxy Devices
Posted 23-Feb-2024 10:50

Amazon Echo Hub Available in New Zealand
Posted 23-Feb-2024 10:40

InternetNZ Releases Internet Insights 2023
Posted 20-Feb-2024 10:31

Seagate Adds 24TB IronWolf Pro Hard Drives for Multi-user Commercial and Enterprise RAID Storage Solutions
Posted 19-Feb-2024 16:54

Seagate Skyhawk AI 24TB Elevates Edge Security Capacity and Performance
Posted 9-Feb-2024 17:18

GoPro Releases Quik Desktop App for macOS and Introduces Premium+ Subscription Tier
Posted 9-Feb-2024 17:14

Ring Introduces New Ring Battery Video Doorbell Pro
Posted 9-Feb-2024 16:51

Galaxy AI Transforms the new Galaxy S24 Series
Posted 18-Jan-2024 07:00

D-Link launches AI-Powered Aquila Pro M30 Wi-Fi 6 Mesh Systems
Posted 17-Jan-2024 20:02

Newest LG 4K Lifestyle Projector Doubles as Art Objet
Posted 9-Jan-2024 15:50

More LG Smart TV Owners Set To Enjoy the Latest webOS Upgrade
Posted 9-Jan-2024 15:45

Panasonic Announces the Z95A and Z93A With Fire TV Built In
Posted 9-Jan-2024 15:30

Amazon Echo Pop Review
Posted 8-Jan-2024 14:22

Samsung Tab S9 FE Review
Posted 17-Dec-2023 08:26

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.

Backblaze unlimited backup