connecting 2 lans with 1 computer

hubertschilder
hubertschilder used Ask the Experts™
on
I am very new at networking, so if i am asking a stupid question, i am sorry for that, but maybe there is a quick and easy solution for my problem.

I have 3 computers.
computer1 192.168.0.2   mask 255.255.255.0   10Mb
computer2 192.168.0.1   mask 255.255.255.0   10Mb
computer2 192.168.0.65  mask 255.255.255.192 100Mb
computer3 192.168.0.66  mask 255.255.255.192 100Mb

computer 2 can ping both computer 1 and computer 3, but computer 1 can not ping computer3

I have win98 installed at all computers.
Is ther a way to configure this to connect the 2 lans on computer2 ?

thanks in advance Hubert
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
hi hubertschilder
It is surely possible to get ur issue resolved. But ur comp 2 is not routing the signals from 3 to 1 and vise-versa.
So i would recommend you have a software router installed in comp 2. Go go 'Win route'. Its got a simple iterface and most widely used.

Other option, load linux on comp 2. It will act as a good router.

regards
Krish..

Author

Commented:
Thanks Krish

Routersoftware should solve my problem. But prior this action I found some comments about using 'route add' in msdn to connect a lan to internet, but i could not implement it for my problem, is that also a solution, and if so how should i configure it?

best regards Hubert

Author

Commented:
If I configure it that way, I cant ping computer3 with computer2. I think because it want to use the first adaptor, and thats not fisical connected to computer3.
In order to see both computers on computer2 I needed to mask 10Mb network.
But now I am not just doing this to experement with routing, I am looking for the easyest way to let this work, with software, or configuring.

regards, Hubert
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Before getting routing to work you need to correct your ip addressing.  The adressing you are using is not valid because the two networks overlap.  Either of the following will be correct.

computer1 192.168.0.2   mask 255.255.255.192   10Mb
computer2 192.168.0.1   mask 255.255.255.192   10Mb
computer2 192.168.0.65  mask 255.255.255.192 100Mb
computer3 192.168.0.66  mask 255.255.255.192 100Mb

or


computer1 192.168.0.2   mask 255.255.255.0   10Mb
computer2 192.168.0.1   mask 255.255.255.0   10Mb
computer2 192.168.1.1  mask 255.255.255.0 100Mb
computer3 192.168.1.2  mask 255.255.255.0 100Mb

After changing the network adressing ping both computer1 and computer3 from computer2 to verify that these connections are still working.

Next you need to enable routing on computer2.  This can be done using 3rd party software or by editing the registry.

Using regedit, locate the registry key: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\MSTCP
Then click Edit, New, String Value
This will add a value called New Value #1
Right click on this value and rename it to EnableRouting
Right click again and modify it to have the value 1
That's it, close regedit and reboot.

You next need to add routes to both computer1 and computer3.  At a command prompt depending on how you did the ip addressing enter one of the following on computer1:

route -p add 192.168.0.64 mask 255.255.255.192 192.168.0.1

or

route -p add 192.168.1.0 mask 255.255.255.0 192.168.0.1

and on computer3:

route -p add 192.168.0.0 mask 255.255.255.192 192.168.0.65

or

route -p add 192.168.0.0 mask 255.255.255.0 192.168.1.1

You should now be able to ping between computer1 and computer3.

 
Just curious, but why don't you just add a cheap hub/switch and put everyone on the same subnet?

I mean, it's cool in a learning environment, connecting three computers with crossovers and making the center a router, but why in the real world?  Please do tell.

Author

Commented:
If I have a powerfull tool, like a computer, why not using it as a router. If there is functionality in the OS to do so, I thought I used it to do some routing. Thats all.
And i am very new at this, and so maybe i am trying to do stupid things, sorry for that.

I tried the above suggestion, and it works perfectly!
Many thanks for that. I can ping all computers from where I want. And proberly i dont see the whole picture, but i thought, if i can ping every computer, then i should be able to enable filesharing. But thats not the case. Pinging works fine, but i cant find the computer.
Does this mean i should use routersoftware like 'sygate' to do so, or is there something else I can configure?

Thanks, Hubert


Workgroups cannot span subnets.  Even if the computers on each subnet are members of workgroups with the same name, they are considered to be in different workgroups as far as windows is concerned.

You cannot browse across different workgroups without using a WINS server or being a member of a domain.  Sygate or any other router software will not solve this issue.

You can however staticly map ip addresses to your computer names using a lmhosts file.  This will allow you to access shares and printers on these computers.  They just will not show up in your network neighborhood.

Create a file named lmhosts in your c:\windows directory of each computer.  It should contain the following.

192.168.x.x computer1 #PRE
192.168.x.x computer2 #PRE
192.168.x.x computer2 #PRE

Of course replace the 192.168.x.x with the real ip addresses and change "computer1" etc. to the real names of the workstations.

You should then be able to access computer1 shares from computer3 by using \\computer1\sharename or do a start->run and enter \\computer1 to see a list of computer1's shares.

Author

Commented:
I am VERY impressed.

Thank you very much!

regards, hubert

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial