Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Connecting two routers to each other?

  1. #1
    Join Date
    Jan 2012
    Beans
    753

    Connecting two routers to each other?

    Recently I got a second wireless router, along with a second DSL line. I'm planning on running any bandwidth intensive applications on a computer using the second line, and the other devices will use the first. The problem is, I want to be able to ssh into the computer, but it's not using the same router. Is there any way I can connect the two routers together, so that a device connected to router A can communicate with a device connected to router B?

  2. #2
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    3,508
    Distro
    Ubuntu Development Release

    Re: Connecting two routers to each other?

    You really have two independent networks. Set up router B to do port forwarding of whatever port is used for SSH (22 if default, or whatever you changed it to if not) to the computer on network B. Router A should not need any special setup.
    Any follow-up information on your issue would be appreciated. Please have the courtesy to report back.

  3. #3
    Join Date
    Jan 2012
    Beans
    753

    Re: Connecting two routers to each other?

    Quote Originally Posted by Doug S View Post
    You really have two independent networks. Set up router B to do port forwarding of whatever port is used for SSH (22 if default, or whatever you changed it to if not) to the computer on network B. Router A should not need any special setup.
    Yeah I know they're independent.

    How do I set up port forwarding to the second router?

  4. #4
    Join Date
    Feb 2013
    Location
    B'ville Alabama
    Beans
    112
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Connecting two routers to each other?

    Don't know if this really helps you or not. http://www.wikihow.com/Set-Up-Port-F...ng-on-a-Router
    Cheers!
    Phenom II X4 955 Denab BE OC 3.8mhz | 8gig G.Skill 1600 RAM | Corsair 750 PSU | XFX ATI Radeon HD 5770 x2 | 1TB WD Black HDD Win7 | 160gig WD HDD Ubuntu 13.10
    --Feel like your question has been answered, mark as SOLVED!

  5. #5
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    3,508
    Distro
    Ubuntu Development Release

    Re: Connecting two routers to each other?

    There is also http://portforward.com/ which is a very popular site, and has insturctions for a great many routers.
    Any follow-up information on your issue would be appreciated. Please have the courtesy to report back.

  6. #6
    Join Date
    Jan 2012
    Beans
    753

    Re: Connecting two routers to each other?

    With this setup, can computers on router A communicate with computers on router B and the other way around? And if so, how would I SSH into the computer, what internal IP adderss would I use to connect to a specific computer?

  7. #7
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Connecting two routers to each other?

    I'll admit I haven't checked the links (perhaps I should). My perception of port forwarding is that all requests for a specific port (e.g. 22) would be forwarded to a specific computer. (probably not what you had in mind)
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  8. #8
    Join Date
    Apr 2012
    Beans
    Hidden!

    Re: Connecting two routers to each other?

    Hi, here is a little visual and starting point for you.

    computer A
    computer A's IP (192.168.1.102)
    computer A's "listen" port (2224)
    computer A's ROUTER IP (75.120.35.104)
    computer A's ROUTER Portforward port 2224 to 192.168.1.102

    computer B
    computer B's IP (192.168.1.103)
    computer B's "listen" port (2225)
    computer B's ROUTER IP (75.120.35.105)
    computer B's ROUTER Portforward port 2225 to 192.168.1.103

    A to B ssh -p2225 user@75.120.35.105 (B's listen port and router ip)
    B to A ssh -p2224 user@75.120.35.104 (A's listen port and router ip)

    This is of course After you set up ssh on both networks.
    some guides..
    http://canyouseeme.org/ <- to find your routers ip
    https://help.ubuntu.com/11.10/server...sh-server.html
    http://chrisjean.com/2009/02/19/ssh-...-ubuntu-linux/
    *Port forwarding is router dependant...
    search....(example) Linksys port forwarding..

    * IMPORTANT * be certin to set security and have keys once you have it all
    figured out...if not...atleast do ..
    Code:
    sudo service ssh stop
    to turn off ssh while you figure it out.
    have fun..
    Last edited by Hadaka; April 12th, 2013 at 03:47 AM.
    Craving anchovy, herring and squid pizza.....with clam sauce

  9. #9
    Join Date
    Jan 2012
    Beans
    753

    Re: Connecting two routers to each other?

    Quote Originally Posted by Hadaka View Post
    Hi, here is a little visual and starting point for you.

    computer A
    computer A's IP (192.168.1.102)
    computer A's "listen" port (2224)
    computer A's ROUTER IP (75.120.35.104)
    computer A's ROUTER Portforward port 2224 to 192.168.1.102

    computer B
    computer B's IP (192.168.1.103)
    computer B's "listen" port (2225)
    computer B's ROUTER IP (75.120.35.105)
    computer B's ROUTER Portforward port 2225 to 192.168.1.103

    A to B ssh -p2225 user@75.120.35.105 (B's listen port and router ip)
    B to A ssh -p2224 user@75.120.35.104 (A's listen port and router ip)

    This is of course After you set up ssh on both networks.
    some guides..
    http://canyouseeme.org/ <- to find your routers ip
    https://help.ubuntu.com/11.10/server...sh-server.html
    http://chrisjean.com/2009/02/19/ssh-...-ubuntu-linux/
    *Port forwarding is router dependant...
    search....(example) Linksys port forwarding..

    * IMPORTANT * be certin to set security and have keys once you have it all
    figured out...if not...atleast do ..
    Code:
    sudo service ssh stop
    to turn off ssh while you figure it out.
    have fun..
    So this has to go through the ISPs of both routers instead of directly? How fast would this be (latency, bandwidth, etc)? The main reason I ssh between computers is so I can use scp to transfer large files without needing to use a flash drive. I assume going through two ISPs and two VPNs in a long detour around the world would be very impractical when the two computers I want to connect are probably only 50 feet away, or less.

    Is there no way to directly connect the routers, via Wi-Fi or even solid Ethernet?

  10. #10
    Join Date
    Apr 2012
    Beans
    Hidden!

    Re: Connecting two routers to each other?

    Hi,, the speed will be determined by your current
    isp speed,your internal processor,and type of modem/router.
    the distance is not important. I have a very like set up
    running 2 routers on 2 different networks. one is Fios
    one is not. I dont see any lag when doing local or sharing
    files with someone 3,000 miles away. I would imagine there
    may be a different or better way,as i am no expert i only
    set it up to work with the knowledge i had. Try it, if nothing
    else its a nice learning process.
    good luck !
    Craving anchovy, herring and squid pizza.....with clam sauce

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •