1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Tomato loses connection to the internet (detailed description inside)

Discussion in 'Tomato Firmware' started by DeltaB, Mar 11, 2008.

  1. DeltaB

    DeltaB LI Guru Member

    Howdy,

    I've been searching for many hours and did trial-and-error for hundred times... Now I need you experts... At first please excuse my bad English, I'm not a native speaker :redface:

    I've got the following setup here in my flat: A Zyxel Router with built-in Modem is standing in the corridor, connected to my (A)DSL-line. Via WLAN I connect to my Linksys WRT54GL v1.1 with Tomato 1.17 installed. So the Linksys router is configured as wireless client while the Zyxel router works as a normal access point.

    The Zyxel connects to the internet using PPPoE, this works fine (tested with several wired and wireless devices). (For the sake of completeness: My DSL-Carrier is o2 Germany (Telefonica), connection speed should be 16.000d / 1.000)

    My Linksys router connects to the Zyxel via WLAN (as I already wrote), the connection is encryptet with WPA-PSK (TKIP) and the Linksys gets its IP-adress via DHCP.

    The Linksys router itsself is connected to two PCs (XP SP2), a Linksys PAP2 VoIP-ATA and a network printer (HP 2605dn) using normal network cables. All these devices get their IP via static DHCP configured in Tomato.

    The problem is: From time to time (normally 2 to 40 minutes) the Linksys router loses its connection to the internet. When the connection is lost, I can still access the Tomato GUI and the GUI says everything is alright (WAN-Status "connected" with a correct IP ect).

    The only way to reconnect to the internet is the "renew"-button at Tomato's status page. After renewing the same thing starts again: connection is fine for some time and then breaks. I also cannot ping any IP on the internet, neither with Windows (cmd, ping ...) nor with Tomato istsself (tools, ping).

    The log does not help me, I can't find anything interesting, probably you experts can see something:

    Code:
    Mar 11 18:00:50  local0.info udhcpc[279]: Performing a DHCP renew
    Mar 11 18:00:50  local0.debug udhcpc[279]: Sending renew...
    Mar 11 18:00:52  local0.debug udhcpc[279]: Sending renew...
    Mar 11 18:00:54  local0.debug udhcpc[279]: Sending renew...
    Mar 11 18:01:04  local0.debug udhcpc[279]: Sending discover...
    Mar 11 18:01:06  local0.debug udhcpc[279]: Sending select for 192.168.1.35...
    Mar 11 18:01:06  local0.info udhcpc[279]: Lease of 192.168.1.35 obtained, lease time 259200
    Mar 11 18:01:08  daemon.info dnsmasq[97]: reading /etc/resolv.dnsmasq
    Mar 11 18:01:08  daemon.info dnsmasq[97]: using nameserver 193.189.244.205#53
    Mar 11 18:01:08  daemon.info dnsmasq[97]: using nameserver 213.20.173.75#53
    Mar 11 18:01:45  daemon.info dnsmasq[97]: DHCPINFORM(br0) 192.168.1.3 00:xx:xx:xx:xx:xx 
    Mar 11 18:01:45  daemon.info dnsmasq[97]: DHCPACK(br0) 192.168.1.3 00:xx:xx:xx:xx:xx PC2
    Mar 11 18:01:48  daemon.info dnsmasq[97]: DHCPINFORM(br0) 192.168.1.3 00:xx:xx:xx:xx:xx  
    Mar 11 18:01:48  daemon.info dnsmasq[97]: DHCPACK(br0) 192.168.1.3 00:xx:xx:xx:xx:xx  PC2
    Mar 11 18:09:41  daemon.info dnsmasq[97]: DHCPINFORM(br0) 192.168.1.3 00:xx:xx:xx:xx:xx 
    Mar 11 18:09:41  daemon.info dnsmasq[97]: DHCPACK(br0) 192.168.1.3 00:xx:xx:xx:xx:xx  PC2
    Mar 11 18:09:44  daemon.info dnsmasq[97]: DHCPINFORM(br0) 192.168.1.3 00:xx:xx:xx:xx:xx  
    Mar 11 18:09:44  daemon.info dnsmasq[97]: DHCPACK(br0) 192.168.1.3 00:xx:xx:xx:xx:xx PC2
    Mar 11 18:10:06  daemon.info dnsmasq[97]: DHCPINFORM(br0) 192.168.1.2 00:50:8d:c4:1e:b1 
    Mar 11 18:10:06  daemon.info dnsmasq[97]: DHCPACK(br0) 192.168.1.2 00:xx:xx:xx:xx:xx  PC1
    Mar 11 18:10:11  daemon.info dnsmasq[97]: DHCPINFORM(br0) 192.168.1.2 00:xx:xx:xx:xx:xx  
    Mar 11 18:10:11  daemon.info dnsmasq[97]: DHCPACK(br0) 192.168.1.2 00:xx:xx:xx:xx:xx PC1
    Mar 11 18:33:46  local0.info udhcpc[279]: Performing a DHCP renew
    Mar 11 18:33:46  local0.debug udhcpc[279]: Sending renew...
    Mar 11 18:33:48  local0.debug udhcpc[279]: Sending renew...
    Mar 11 18:33:50  local0.debug udhcpc[279]: Sending renew...
    Mar 11 18:34:00  local0.debug udhcpc[279]: Sending discover...
    Mar 11 18:34:02  local0.debug udhcpc[279]: Sending select for 192.168.1.35...
    Mar 11 18:34:02  local0.info udhcpc[279]: Lease of 192.168.1.35 obtained, lease time 259200
    Mar 11 18:34:05  daemon.info dnsmasq[97]: reading /etc/resolv.dnsmasq
    Mar 11 18:34:05  daemon.info dnsmasq[97]: using nameserver 193.189.244.205#53
    Mar 11 18:34:05  daemon.info dnsmasq[97]: using nameserver 213.20.173.75#53 
    What I tried so far:

    • Using a wired connection instead of WLAN between the two routers causes exactly the same problem
    • Using unencryptet WLAN instead of WPA-PSK also did not help
    • Downgrading to Tomato 1.16 doeas not change anything
    • Connecting the Linksys to the Zyxel using a static IP instead of DHCP does not work at all (Tomato says that there is a connection but I can't access the internet at all)
    • Connecting any device (wired or wireless) direktly to the Zyxel works fine. Even if the Linksys lost the connection, devices connected directly to the Zyxel work fine (so the connection to the internet in general is no problem, the problem is bringing these two routers together)

    As the lost of the Linksys' connection affects every device connected to the Linksys (also the VoIP-ATA I mentioned) I also don't believe in a problem with the XP-settings. Must be something between these two routers...

    By the way: I noticed that the connection is much loger alive, if i generate constant traffic, for example while listening to webradio. In this case, the connection brakes normally after 15 to 45 minutes. When I'm just surfing normal, the connection is normally lost after only 1 to 5 minutes. Also the connection is never lost while loading a page, when clicking a link the page is loaded completely or not at all ("Error: The server does not answer").

    Another thing: I've been using the Linksys and Tomato with a cable modem before. This cable modem was connected directly to the WAN-Port. I had absolutely no problems and I lerned to love Tomato and it's features and I don't want to miss them any more ;)

    Using another router than the Zyxel in the corridor unfortenatly is no option because this router has a built-in proprietary VoIP-part that I want to use...

    Probably anybody has any idea what I can try to fix this permanent disconnect. Big big thanks in advance to everybody read this long text and can give me a hint!

    Greetings,
    Manu
     
  2. mstombs

    mstombs Network Guru Member

    :welcome:

    Tomato having to send 3 dhcpc renews is not good, it appears the modem doesn't respond to the "renew", but when the IP address is lost it does respond to the "discover", I suggest you tick the box "reduce packet size" in the Tomato config and see if it helps. The dnsmasq DHCPINFORM/ACK are on the LAN side of the Tomato router, windows XP tries this when it notices limited connection to the internet - it tries to kick-start the network.
     
  3. DeltaB

    DeltaB LI Guru Member

    Thank you very much for your fast reply :thumbup:

    I forgot to write it but I've already tried this - no change :frown:

    I will keep reading and searching, nevertheless I'll be very greatful about any hints. Thank you again, mstombs!
     
  4. DeltaB

    DeltaB LI Guru Member

    Still having trouble... I tried DD-WRT and have exactly the same problem :frown:

    Any ideas? Thanks in advance ;)
     
  5. pfoomer

    pfoomer LI Guru Member

    Can you monitor the modem?

    Is it possible the problem is either the modem/line/filters?
     
  6. mstombs

    mstombs Network Guru Member

    I think I can see the problem, you are using the same local IP address range on the LAN and WAN side of the Tomato router, so the routing table will be a mess.

    Change the Tomato LAN IP address to 192.168.0.1 for example.

    I'd also be interested to know if your PAP2 works with this double-NAT setup.
     
  7. DeltaB

    DeltaB LI Guru Member

    That's it! So easy, I wonder why I did not get this idea myself... I feel like an ultra-noob... Thank you very much!

    Outgoing calls are no problem, I tried this several times (the only thing you have to do is defining the secound router (in my case the Linksys) as a DMZ in the first routers setup (in my case the Zyxel). But as Tomato itsself provides a firewall, I don't see a security lack here.

    Thanks to everybody who read my question, especially mstombs :thumbup:
     
  8. jhoback

    jhoback Guest

    I am having a similar issue. I keep having to manually release/renew my ip in tomato 1.20 I have a ARRIS TM202G cable modem & Linksys WRT54GL router.

    Forgive my noobness, but how do you do this?




    The part that is editable in the LAN is the last part of the ip = 100 (192.168.1.100)

    Or, do you mean to change the router ip to: 192.168.0.1?

    Thanks for any help!
     

Share This Page