- Connecting 2 Home Networks
- Posted by phelper on August 20th, 2006
I have two small networks, each with it's own separate link to the
internet. 1 uses the range 192.168.x.x and the other uses 10.x.x.x.
Each network connects to a router that is it's link to the internet.
I'd like to be able to get both networks to talk to each other. In
otherwords, use the computer at 192.168.1.50 to talk to 10.0.1.1.
If I try, the computer trys to find the network out across it's
internet connection. I've even tried connecting the two routers with
a network cable... that didn't work.
Any suggestions?
Thanks.
- Posted by Yousuf Khan on August 21st, 2006
phelper wrote:
Both of those address ranges are non-route-able addresses. You cannot
them dynamically, only statically. What that means is that you must set
a static route in all of your computers to allow them to see each other.
It also means you need another router between them to route packets to
each side. You cannot simply put a network cable between the two
existing routers and have them see each other. What you need is a router
that connects between these two routers. You can create a router out of
one your computers if it's got two network cards in it, then you can
connect one network connection to each network. The computer will then
act as a router between the two networks. All you would need to do is
set a static route on the 192.x.x.x computers to route all 10.0.x.x
through this computer. And similarly do the same on the 10.0.x.x
computer to route through this computer to the 192.x.x.x range.
Yousuf khan
- Posted by phelper on August 22nd, 2006
Thanks for your note, great information. I'm pretty good with
computers and such, but I've never set up a "static route" between
computers. I think I will go the way of using one of the computers as
a router between the networks as it has two nics in it. Could you
assist in the procedure for setting pu the static route? I'm not able
to figure that one out. Thanks again for your help.
- Posted by Yousuf Khan on August 23rd, 2006
phelper wrote:
It should be pretty easy on Windows XP, just select the two connections
using the ctrl-leftmousebutton, and then rightmousebutton the "bridge"
connection.
Yousuf Khan
- Posted by Yousuf Khan on August 23rd, 2006
Yousuf Khan wrote:
Oh, and then you have to configure the static routes on each computer in
each subnet. So let's say the machine that's acting as the router has
one interface that is 192.168.1.100, while it's other interface gets
10.0.0.200. Then all of the computers on the 192.168.1.x subnet will
need to be told to route their packets destined for the 10.0.0.x subnet
through 192.168.1.100. Similarly, all computers on the 10.0.0.x subnet
need to be told to go through 10.0.0.200 to get to 192.168.1.x subnet.
Yousuf Khan
- Posted by phelper on August 24th, 2006
That's the part I have trouble with... I'm not sure how to tell each
computer how to route only 10.x.x.x or 192.168.x.x traffic.
I was also having trouble with the other network, once all the cables
were in place, from using the other networks internet feed. No matter
what I did, the computer acting as the router (the 10.x.x.x) would get
it's internet using its 192.168.x.x connection. I finally put a
metric of 1 on the 10.x.x.x and that seemed to fix it.
I do have the bridge set up, just unclear on the routing. Thanks
again for your help.
- Posted by phelper on August 24th, 2006
On Tue, 22 Aug 2006 17:55:54 -0500, phelper
<hoofhah2002@nospam.yahoo.com> wrote:
Maybe it's "route add 10.0.0.12 192.168.0.4"
I'm now able to ping the 10.x.x.x network.
- Posted by YKhan on August 25th, 2006
phelper wrote:
That's one way of doing the routing by using the "route" command from
the command-line. Also from the command-line you'll need to use the
"route -p add ..." command form, so that the static route will remain
after you reboot those computers. That is after you figure all of your
routing is right.
However, if you want to do it in a graphical way, you might be able to
do it from the network adapter properties. Right-click on the network
adapter, select Properties, then under General tab, go to the TCP/IP
item. Click on TCP/IP Properties, then under its General tab, click on
Advanced. Under "IP Settings" you'll see "Default Gateways" section.
You can just add the IP address of the router machine, and it should
automatically be able to figure out which networks it's going to and
its metric.
Yousuf Khan