wrt54g behind other router, not working

Discussion in 'Networking Issues' started by paladine, Nov 9, 2005.

  1. paladine

    paladine Network Guru Member

    I am having trouble using the wrt54g's router mode. I have a wired lan using The netmask for this DHCP'd subnet is The wrt54g's internet connection is connected to this subnet. The wrt54g gets the IP address The wrt54 has its DHCP server enabled and deals out the IP scheme 192.168.2.x/
    When I set the wrt54g into gateway mode, everything works just fine. But I don't really want dual masquerading and I want to be able to directly access the wireless IPs from the wired IP and vice versa.
    Therefore, I want to use router mode because my main LAN already handles the gateway-ing. I have done some tests and monitoring and it seems that when I have a 192.168.2.x wireless IP address, I can send packets to the 192.168.1.x machines. The trouble seems to be in the response. It seems the wrt54g is throwing away these packets destined for 192.168.2.x.

    Any ideas? Do I need to use a custom firmware to accomplish this?
  2. daskalos

    daskalos Network Guru Member

    I would like to accomplish a similar thing.
    I have read that in router mode the wrt54g disables the
    internet connection. May be you should connect your
    main lan to an ethernet port.
    Please let me Know
  3. DocLarge

    DocLarge Super Moderator Staff Member Member

    Run "straight thru" CAT5 from one of the four LAN ports of your router that's connected to the internet to the WAN port of your second WRT54G. Make sure the DHCP server of the first router can give an IP address to the second router. Your second router will need this in order for its WAN port to be on the first router's LAN. This allows router two to pass packets back and forth to the internet via router one's WAN port.

    Next, log into the second router (connect a straight thru cable from on of its LAN ports to an ethernet port on your computer; do this first before connecting the two routers together) and make sure the router is set for DHCP (it should be already set by default). If the LAN scheme of the first router is (for example) 192.168.1.x, make the second router's ip scheme 192.168.2.x, 192.168.3.x, and so on.

    Just do not have it set to the same LAN ip scheme as your first router or packets will not be able to be routed (they will see the two segments as being the same). Then, all you have to do is set your security. Make sure both routers are on different channels because you now have "two routable subnets" to work with.

  4. howardp6

    howardp6 Network Guru Member

    The WRT54G senses if you are using a cross-over cable or a straight through cable and you can use either type of cables on all the ports.
  5. paladine

    paladine Network Guru Member

    DocLarge, I already have it setup like you have mentioned.

    What I'm worried about is that the WRT54g is discarding packets destined for its IP scheme (192.168.2.x) originating from the WAN port (192.168.1.x).

    I have downloaded the GPL'd firmware from Linksys and am going to build my own in order to fix it.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice