Multiple home routers

Posted by netvope on Super User See other posts from Super User or by netvope
Published on 2010-03-08T02:34:29Z Indexed on 2010/03/08 3:05 UTC
Read the original article Hit count: 505

Filed under:
|
|
|

Suppose I have the following configuration:

  • Router A: WAN port connected to the Internet, LAN = 192.168.1.0/24
  • Computer A: Connected to router A as 192.168.1.101
  • Router B: WAN port connected to router A as 192.168.1.102, LAN = 192.168.2.0/24
  • Computer B: Connected to router B as 192.168.2.101

Now I want computer A to communicate with computer B seamlessly (e.g. can establish a TCP connection by running nc 192.168.2.101 <port>) by means of routing, rather than merging the two networks into one (which can be easily accomplished using router B as a switch).

Most routers are shipped with NAT turned on, of which I definitely need to turn off in router B. But what other steps do I need to take so that packets from computer A to computer B would go through router B?

I could manually add a routing table entry in computer A so that all packets targeted to 192.168.2.0/24 go through gateway 192.168.1.102, but I would prefer an automatic way if it exist.

© Super User or respective owner

Multiple home routers

Posted by netvope on Super User See other posts from Super User or by netvope
Published on 2010-03-08T02:34:29Z Indexed on 2010/03/08 3:32 UTC
Read the original article Hit count: 505

Filed under:
|
|
|

Suppose I have the following configuration:

  • Router A: WAN port connected to the Internet, LAN = 192.168.1.0/24
  • Computer A: Connected to router A as 192.168.1.101
  • Router B: WAN port connected to router A as 192.168.1.102, LAN = 192.168.2.0/24
  • Computer B: Connected to router B as 192.168.2.101

Now I want computer A to communicate with computer B seamlessly (e.g. can establish a TCP connection by running nc 192.168.2.101 <port>) by means of routing, rather than merging the two networks into one (which can be easily accomplished using router B as a switch).

Most routers are shipped with NAT turned on, of which I definitely need to turn off in router B. But what other steps do I need to take so that packets from computer A to computer B would go through router B?

I could manually add a routing table entry in computer A so that all packets targeted to 192.168.2.0/24 go through gateway 192.168.1.102, but I would prefer an automatic way if it exist.

© Super User or respective owner

Related posts about router

Related posts about routing