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

Settings for 2 routers

Discussion in 'Tomato Firmware' started by techspy, Jul 23, 2007.

  1. techspy

    techspy Network Guru Member

    I have 2 routers, both using tomato. Router a is connected to my isp and has cat 5 run to the other side of the house from one of the lan ports. Router b is connected to that cat 5 on the wan port. I want to use the wireless on router b. I have router 1's ip address as and router b's at Everything else is basically default. I can connect to the wireless on router b (or via cat 5 on the built in lan ports) and everything works find except.....I can't resolve computers on the router a network by host name. If I put in the ip address, IE: \\\share It works fine. But if I put in \\computername\share it won't resolve. Can someone tell me the correct way to have these 2 routers setup? Is there a way I can resolve host names across the subnets?

    Thanks for any info.
  2. tievolu

    tievolu Network Guru Member

    This may be causing you difficulties:
    I think you should be using the LAN ports on both routers, otherwise you'll have all sorts of weirdness going on such as double NATing. If you connect the second router via a LAN port, you'll be using it effectively as a wireless/ethernet bridge and everything will be on the same subnet, which I think is what you really want (unless you definitely want the two subnets?).
  3. Jaidee

    Jaidee LI Guru Member

    I would suggest running both routers on the same subnet - this will avoid all the broadcast packets getting lost. Try this:

    Router A:
    Router B: (DHCP disabled)

    Of course, that's assuming you don't have two WAN connections, one on each router - if this is the case, you probably want to look at my recent thread here.

    Also, as the guy says above, you shouldn't really be in the WAN port of that router, use the LAN ports.
  4. HennieM

    HennieM Network Guru Member

    NetBIOS packets don't traverse routers well. When connecting to a share as \\computer\share, you are accessing it by its netbios name.

    Best solution would be the single subnet as suggested by the posts above. If you don't want to do that, you could try accessing machines connected to router A as \\IP.address.of.machine\share. You would however, most likely not be able to access machines connected to router B from subnet A if you are running router B as a gateway.
  5. ifican

    ifican Network Guru Member

    Also if you are going to set it up as above and use the lan ports, if you are going to use the wireless on both routers make sure they are the same ssid but on different channels.
  6. t4thfavor

    t4thfavor Network Guru Member

    If you wanted to get confusing, you could do wds, and eliminate the cat5 cable between routers.

    I had to do that since my wife is always moving stuff around the house.

    Now I don't have to worry about the planned obsolescence of my cat5 run:)
  7. techspy

    techspy Network Guru Member

    Thanks guys. I didn't need 2 subnets so I disabled dhcp and set the router to and connected to a lan port. I tried this before when I was trying to figure out the best way to implement this. I never had dhcp disabled, the ip set to 1.2 and connected to a lan port all at the same time. I knew I was missing something and that the wireless should act as another port on the internal switch but I didn't have it just right.

    The reason I am doing this by the way is because my main router keeps dropping the wireless signal. I could never figure out why. I can only imagine it is because of interference and the router being on the opposite side of the house from teh laptop. I even got a WiSpy and looked at the interference but could never make any headway. I already have cat6 run to the room the laptop is in because it is connected to my HTPC, so connecti9ng another router that I already had seemed like the best approach. So far so go and no dropouts. On that note, has anyone ever figured out any settings that will cause wireless dropouts? I heard some say changing the default channel or default admin password etc. I have already done the obvious, high gain antennas, all drivers up to date, tested the laptop on other networks, I have left the xmit power to default btw.

    Anyway, thanks again!
  8. dvaskelis

    dvaskelis Network Guru Member

    You can have both access points on both wireless routers running for optimal coverage since they're now properly on the same subnet. Use all the same wireless settings for both--especially the SSID, but have them on different channels, ideally at least 5 channels separation between them (e.g. one on channel 1 and the other on channel 6).

    Wireless clients will be able to move between them seamlessly, provided the client driver supports it and allows an "auto" channel setting. Most do as it's part of the 802.11b/g spec.
  9. techspy

    techspy Network Guru Member

    Thanks for the info. I am having a strange problem with this setup. I do a good bit of configuration when I am away from the house and log in to view bandwidth etc. I can login to the main router fine, but I can't login to the second one from the internet. I have the router set to and have the port I am using set to forward to that IP from the main router. I can't login to the second router from the internet. I can from within the LAN however.

    Any ideas?
  10. t4thfavor

    t4thfavor Network Guru Member

    My only guess is that you have the port forwarded to the wrong port on the router.

    like external port 8080 forwarded to instead of

    Just a stab in the dark though, its a mistake I have made before.
  11. techspy

    techspy Network Guru Member

    Yeah I have already checked that. I have the correct port. I also thought it would only forward to the 100-254 range of ip's but I tried setting the 2nd routers IP to 250 and it still didnt work.
  12. dvaskelis

    dvaskelis Network Guru Member

    Tell us more.

    1. What is the URL from the Internet you are using to try and get in? (e.g. http://x.x.x.x:8080)

    2. What is the port forwarding configuration? (e.g. port 8080 from Internet to port 80 on

    3. What local access method are you using? (e.g. HTTP = port 80)

    My first guess is that you're trying to get to your "remote access port" which isn't connected to anything or exposed to anything since you're not using the second router's WAN port. Make sure you're trying to get at remote access similarly to my examples above.
  13. techspy

    techspy Network Guru Member

    To access my main router I put in http://mydomain.com:1111 For the other router I put in http://mydomain.com:2222 and have port 2222 forwarded in the main routers configuration to the IP of the second router. I tried using http and https. Neither allow me to connect to the second router.
  14. digitalgeek

    digitalgeek Network Guru Member

    Enable HTTPS access on the second router and forward the port (IE:2222) to 443 and try again.

    As explained in an earlier post; when you are forwarding ports, it is on the local port not the remote port.
  15. tievolu

    tievolu Network Guru Member

    Which port are you forwarding to on the second router? You need to forward to port 80, NOT the port in the remote access config (the router only listens on the remote access port on the WAN interface, which isn't what you're using on the second router).
  16. techspy

    techspy Network Guru Member

    Well I tried that and still no go.

    I am not sure what you mean by "As explained in an earlier post; when you are forwarding ports, it is on the local port not the remote port."

    I understand that the external port is the port coming in on the WAN and Internal port is what you want it transferred to on the LAN. I tried it the way you suggested as well as trying port 80 on the LAN as well as just leaving it on 2222. Still a no go. I know 2222 is working as I VNC to a local machine and can access the router no problem.
  17. dvaskelis

    dvaskelis Network Guru Member

    You did not fully answer the questions I asked earlier... in your example above, what IP and port are you forwarding 1111 and 2222 to?

    We're all wondering if you are correctly forwarding the port you want to use for the second router to either 80 (HTTP) or 443 (HTTPS). Those are your only choices for web administration from the Tomato GUI since on the "Administration: Admin Access" page you're coming in using the "Local Access" setting from LAN side of the router.

    Several posters are guessing that you are incorrectly forwarding your Internet port to the "Remote Port" on that screen, which is unused in your configuration because that defines how things work on the WAN side of the router.
  18. digitalgeek

    digitalgeek Network Guru Member

    Thanks, for clarifing that further for me... I was try to explain that...

    here's a couple pics for those who need it...
    router one, port forwarding... due to the inherent "public" nature of the internet I recommend port 443 (https)

    router to remote access is diabled, as router two is access via local access

    therefore the "remote" URL is: https://mydomain.com:8088/
  19. HennieM

    HennieM Network Guru Member

    You all lost me, so here some clarifications and a thought:

    Main router is A with inet on WAN physical port, IP addres ext.ip, and LAN
    Second router is B and LAN

    i) So, if you want to, from the inet, access router B over http (http://ext.ip:2222), you should have
    On router A: external port 2222 forwarded to port 80
    Connection will run like this
    inet http request -> ext.ip:2222 -> (using http protocol)

    ii) If you want to access, from the inet, router B over https (https://ext.ip:2222), you should have
    On router A: external port 2222 forwarded to port 443
    Connection will run like this
    inet https request -> ext.ip:2222 -> (using https protocol)

    iii) If you have this
    On router A: external port 2222 forwarded to port 2222
    and you try to use http://ext.ip:2222 or https://ext.ip:2222,
    you will not be able to connect, as no http service nor https service on router B is listening at port 2222.

    Point is, the web server on router B ( is listening for http connections on port 80 and only port 80. Similarly, the web server on router B is listening for https connections on port 443 and only port 443. (The above all assume that you don't do any internal port forwarding on router B).

    Now, here's the thought: If "Remote Access" is DISabled on router B, does tomato not set a firewall rule that only can access the services (ports) on router B? I'm assuming here that, by the time the request from the inet gets to router B, router B sees it as FROM ext.ip., NOT from (router A LAN address). I'm not sure if this is so, but I think it is.

    This will be consistent with techspy's
    A way to test that would be to enable "Remote Access" on router B, with the port forward setup as in (i) above.
  20. GeeTek

    GeeTek Guest

    You are having more than your share of trouble with such a simple project. Here are the configs and screeenies of a 3 radio setup I have. Router 2 has a secure and a regular web server attached to it's LAN. All 3 radios are accessible from these shortcuts. R2 connects from it's WAN to main Router LAN. AP3 is WDS with main router.
    My IE Shortcuts;

    https://67.78.1xx.xxx:8088/ (Main Router)
    https://67.78.1xx.xxx:8089/ (Router 2)
    https://67.78.1xx.xxx:8099/ (Access Point)

    Ip addresses ;

    Main Router
    WAN = 67.78.1xx.xxx
    LAN =

    WAN =
    LAN =

    WAN= N/A
    LAN =

    Edit - You need to hover over the thumbnail to see which shot it is.

    Attached Files:

  21. techspy

    techspy Network Guru Member

    Yep, I have tried all of these.

    I have forwarded on router a port 2222 to port 80 on router b, port 443 on router b and 2222 on router b.

    I probably mis-spoke when I said "I know 2222 is working as I VNC to a local machine and can access the router no problem." because I am not actually using 2222, I am using 80 (I just enter the local ip with no port, ie:

    I have port 2222 setup as the remote port on router b. (I am assuming this is irrelevant anyway as this would pertain to the wan port, which isn't being used)

    I am personally thinking that router b can see that the request is coming from an external ip and not allowing access.

  22. techspy

    techspy Network Guru Member

    This was my first approach (having 2 subnets) but ran into issues with host names resolving. Can you connect to pc's on the main router from router 2 by host name and not ip?

  23. GeeTek

    GeeTek Guest

    That situation has not come up. Do you need your router "B" to be a router or can you survive in AP mode ?
  24. techspy

    techspy Network Guru Member

    I don't necessarily need it to be a router. I just need to be able to connect to it's wireless and have that connection be on the same subnet as router A

  25. GeeTek

    GeeTek Guest

    So this setup solved the original problem of not resolving by name, leaving you with the remote access problem ? If yes, then the config info I posted for my AP3 will solve that problem for you. Instead of using WDS like I did, you will connect LAN to LAN, no DHCP on your access point "B".
  26. techspy

    techspy Network Guru Member

    That is how I have it setup now. Router B is set to no DHCP and has one of it's lan ports connected to a lan port on router A.

  27. GeeTek

    GeeTek Guest

    So, what is the problem you are having ?
  28. techspy

    techspy Network Guru Member

    I can not login to router B from the internet to administer it.

  29. GeeTek

    GeeTek Guest

    What part of my first post on the AP3 configs did you not try ?
  30. techspy

    techspy Network Guru Member

    My router B IS setup like your AP3.

    I will post a image of my topology that may help everyone visualize what I have.

  31. GeeTek

    GeeTek Guest

    Post back with this info ;

    1 - Main Router LAN IP
    2 - AP "B" LAN IP (It has no WAN IP)
    3 - Main router port forward screen shot
    4 - AP "B" screen shot of "Administration" -"Admin Access"
    5 - What you enter into your web browser from the outside when trying to access AP "B".

    With that info I will tell you exactly what you need to change to make it work.
  32. techspy

    techspy Network Guru Member

    Finally! I had to manually set the default gateway on router B to the IP of router A.

    Man.......thanks for everyones help!
  33. digitalgeek

    digitalgeek Network Guru Member

    yes, gateway and dns are quit important on router b... (they should be the IP of router A)

Share This Page