Second WRT54G as switch

Discussion in 'Tomato Firmware' started by ray_burnz, Jan 14, 2009.

  1. ray_burnz

    ray_burnz Guest

    Sorry if I'm asking a question that has been asked a million times but I wanted to get a concise answer from the experts.

    I was in need of a switch and decided to use a second WRT54G sitting around that I could load with Tomato.

    I was wondering if the following setup would let DHCP from the first WRT54G pass IPs thought to the computers connected to the second WRT54G?
    I want to make sure there is no double natting, firewall, QOS, nothing at all on the second WRT54g.
    Literally it acts like a switch and nothing else.
    Computer see each other across the network as if, literally, they are all connected by switches to the first WRT54G.

    1) Wireless disabled.
    2) Give it an IP and then disable DHCP.
    3) Set it to router mode instead of gateway mode.
    4) Do I have to do anything with RIP or spanning tree settings?
    5) Disable any tracking/nat helpers.
    6) Anything else you guys suggest?
  2. astehn

    astehn LI Guru Member

    Someone more "expert" than me can chime in, but i think you've pretty much got it covered. Steps 1-3 that you mention, when applied from the factory default condition of the router should be all you need. Essentially, it's what I'm doing on the 4 WRT54GLs I'm using as wireless APs, hooked up to my main WRT54GL with the public IP address. No need to mess with #4 or #5.

    The only thing I would add is that you should enter the primary router's IP address as the "Gateway" and the "DNS" for the router you are using as a switch.
  3. ray_burnz

    ray_burnz Guest

    I'm wondering if it is possible to connect a cable from one of the first WRT54G's LAN ports and plug it into the WAN port of the second WRT54G?
    It would be nice to have that second WRT54G acting as a switch and have all four ports available.

    Maybe I'm asking for too much but damn it I want to have my cake and eat it too! :smile:
  4. jza80

    jza80 Network Guru Member

    Do steps 1 and 2.

    In step 2, assign the router an IP address on the same subnet as router 1. IE: and

    Subnet mask on both routers should be the same., unless you have a reason to use something else.

    Theres no need for it and there is no option to enter a gateway under Basic -> Network -> LAN.

    Yes, its possible. However doing so, the 2nd router will have NAT, firewall, routing.

    For your purposes, just cable both routers together LAN port to LAN port. Do not use the WAN port on the 2nd router.
  5. FRiC

    FRiC LI Guru Member

    Other third-party firmware such as DD-WRT has an option to make the WAN port into a LAN port.
  6. Kiwi8

    Kiwi8 LI Guru Member

    To convert WAN port into LAN port:
  7. ray_burnz

    ray_burnz Guest

    Thank you everyone for your replies.
    I might just run DD-WRT on this to make it a 5 port switch.
    I figure with all the other options turned off it should be pretty stable.
  8. Kiwi8

    Kiwi8 LI Guru Member

    U can make it a 5-port switch in Tomato, via the command line interface. Makes me wonder whether u even read the thread that I posted prior in this thread. :(
  9. ray_burnz

    ray_burnz Guest

    I skimmed over it earlier but now that I had time to read I do see your point.
    Well even better - I get to stick with Tomato! :thumbup:

    Thanks for the advice.
  10. walichka

    walichka Addicted to LI Member

  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