Link to home
Start Free TrialLog in
Avatar of hubertschilder
hubertschilder

asked on

connecting 2 lans with 1 computer

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
Avatar of kris2k9
kris2k9

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..
Avatar of hubertschilder

ASKER

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
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
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.
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


ASKER CERTIFIED SOLUTION
Avatar of tsedlmeyer
tsedlmeyer

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I am VERY impressed.

Thank you very much!

regards, hubert