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

2 Routers 1 Network Problem

Discussion in 'Tomato Firmware' started by duogsla, Feb 27, 2010.

  1. duogsla

    duogsla Addicted to LI Member

    All --

    I have searched and searched and everything seems to give me the same method, which I have tried to no avail. Basically I want my extra wireless router to act as a switch and have my main tomato-based router run the show...I cannot get it to work.

    Here is my setup. I have a cable modem, running to a WRT54GS v1.0 running Tomato v1.27.1798 (Router 1). I also have a Netgear WGR614 v6 (Router 2) which is connected to Router 1 through LAN ports (not WAN). I disable DHCP on Router 2 and assign Router a static IP in the same range and subnet of Router 1 but outside the DHCP range of Router 1.

    So Router 1 is 192.168.1.1; 255.255.255.0 DHCP 192.168.1.100-199.
    Router 2 is 192.168.1.2 no DHCP.

    Everything I've read says this should allow Router 1 to assign IP's via DHCP to anything that connects to Router 2. This is not working.

    Nothing connected to Router 2 will get an IP (everything is set to automatically receive IP) thus nothing connecting to router 2 works.

    Note, I have tried using a similar setup with Router 2 and an old Linksys (org. firmware) and it works as it should.

    So this leads me to believe there is a setting in Tomato I need to tweak for this setup to work.

    Anyone have any suggestions?
     
  2. michse

    michse Addicted to LI Member

    your right, this have to work.

    did you tested dhcp on router 1 directly? If it works than something in layer 2 kills your dhcp packets.

    Maybe your cable modem works with 192.168.1.x for testing, try another subnet. so you kill this problem if it exists.
    michse
     
  3. Toastman

    Toastman Super Moderator Staff Member Member

    Set as AP?
     
  4. ilovejedd

    ilovejedd Addicted to LI Member

    Have you tried setting Advanced » Routing » Miscellaneous » Mode to Router instead of Gateway on the router you want to use as switch?
     
  5. m078

    m078 LI Guru Member

    Make sure that Router 2 has Default Gateway 192.168.1.1 and Static DNS 192.168.1.1 (in Basic - Network)
     
  6. phdeez

    phdeez Addicted to LI Member

    Completely OT, but the title reminded me of the 2 girls 1 cup video. :D
     
  7. duogsla

    duogsla Addicted to LI Member

    1) DHCP works on Router 1 (tomato router)

    2) Try a different subnet? So do you mean that Router 1 should be on 192.168.2.x as opposed to 192.168.1.x, then make the same adjustment to Router 2?

    3) Set as AP? Router 1 (tomato) is already set to that. As for Router 2, it does not have any option to do so.

    4) Change mode from gateway to router. Router 2 is not able to have its firmware flashed, I am stuck with netgear firmware which does not give me the option.

    5) Router 2 gateway and dns settings. Because Router 2 does not have tomato (nor can it) I cannot control this under the netgear settings.

    If someone can clarify #2 (suggested by michse), I will be happy to give that a go. Otherwise, I am out of ideas. Right now I am having Router 2 setup through the WAN port so I can at least have it work. My main goal is to be able to hook up a NAS and have computers on both Router 1 & 2 be able to share the NAS. If there is another work around in that regard let me know.

    Thanks for all the help!
     
  8. michse

    michse Addicted to LI Member

    yes, change your lan settings away from 192.168.1.x to 192.168.2-254.x

    then it works 99% as an AP. You can connect to Router 2 vie WLAN? It is an AP. But I think it should doesn't matter.
    you pluged in in LAN ports, so its ok. gateway or router mode sad only if nat is enabled on WAN port and some iptables rules. but you want switching and don't use WAN port on router 2
    Gateway and DNS on Router 2 doesn't matter to dhcp, because its the same subnet and no domain names should be resolved. again, you want to switch. router 2 don't need that.
    Some modem (and I mean modem, not modem with router or what else. only modulate and demodulate) like speedport 200 from T-Com you can reach on IP 192.168.1.1. It's only an IP to ask the modem some parameters. It did nothing in the connection between you and your ISP. But if your Router 1 knows that IP at WAN port, it puts some/all traffic in that direction (not to ISP, because its tunneld). So it could be that your Router is a little confused to have one subnet on both sides. If you change your LAN sides IP range you don't have to think about it :)

    next, probe if static IP adresses on PC behind router 2 (mh, its a switch!) work. (gateway and dns is lan ip router 1).
    can you paint a litte picture, maybe it could be clearer.

    and in Tomato, Administration-Debugging-Download IPtables dump, send us a copy.
    take a pc, install wireshark. start a session, plugin network cable (use dhcp, not static) wait a few seconds and send us the capture.
    don't know more.

    maybe something blocks the ports for dhcp.

    michse
     
  9. duogsla

    duogsla Addicted to LI Member

    Problem Solved. It was a cable issue. For some reason the Cat-5e cable was able to send information when connected from LAN to WAN port, but when connected LAN to LAN it would not send DHCP packets properly. I redid the connectors on the cable to make sure they were correctly wired.

    Once I had the cable correctly wired, everything worked as it should. Thanks for the help!
     
  10. RonWessels

    RonWessels Network Guru Member

    This actually brings up a question that's been at the back of my mind for quite some time. When there are two devices, both with Auto-MDI/MDIX, connected together, who "wins" and performs the switchover? And what stops both devices from detecting the cabling mis-match and _both_ devices performing the switchover?
     

Share This Page