Question

Locked

how to connect two 2 comps with 2 NICs each

By kruczer ·
Hello there

My situation is as follows.
Computer A has 2 NICs configured for 2 different subnets, let's say NIC 1A has 192.168.0.2 / GW 192.168.0.1 (router) and NIC 2A has 10.10.10.10.
Computer B has similar configuration with NIC 1B 192.168.1.2 / GW 192.168.1.1 (router) and NIC 2B 10.10.10.5.
Now, Computer A gets IP from router as well as some other comps. I was able to create a route through this router to reach IP 10.10.10.10 from the other computer on the 192.168.0.x network, however the connection with 10.10.10.5 is dead. My guess is I need to route something on Computer A. The question is what and where as I tried to add different combinations to route tables on Computer A but to no avail.
Both computers A and B run on windows server 2003 sbs, by the way. And I'm able to make a successful ping between Computer A and Computer B.

To ilustrate my desired connection
CompX (192.168.0.x) -> (192.168.0.1) router (192.168.0.1) -> (192.168.0.2) CompA (10.10.10.10) -> (10.10.10.5) CompB

Thanks for any hints and help. It will be much appreciated.

Kind regards,
Lukasz

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

You can use a Cross over cable....

Computer to computer you will need a cross over cable to do this, if that is your intention.
More here:
http://www.ehow.com/how_6496951_connect-two-pcs-together-nics.html

Or you might like to connect to 2 seperate networks using two different NICs. Windows can handle this reasonably well depending on the setup. If one card is connected to a router (that probably uses a private IP address) and internal network uses a private IP address (ones that start with 10.x.x.x or 192.168.x.x and they have different IP address ranges then Windows can route between the two with no problem. It can also find the internet in most cases without help. As an example, the network with the internet has a gateway address of 192.168.0.1 with a subnetmask of 255.255.255.0 and the internal network has a gateway address of 10.2.2.1 with a subnetmask of 255.255.255.0. Then in most cases you can just connect to two and it will work, You can connect to any resources in the 10.2.2.1 netowrk and internet traffic will go out the 192.168.0.1 network. However if the internet side has a gateway address of 192.168.0.1 with a subnet mask of 255.255.255.0 and the internal network has a gateway address of 192.168.0.1 with a subnet mask of 255.255.255.0 then windows will have problems sending packets to the correct network.

Collapse -

Routing

by oldbaritone In reply to how to connect two 2 comp ...

First, you must be sure that Comp A allows connection routing between the NICs. Check firewall settings, and if it's Windows, enable "Internet connection sharing"

Then in the router's routing table, add a route to 10.10.10.0 via 192.168.0.2:
<table align="center" border="1">
<tr><th>Destination</th><th>Gateway</th><th>GenMask</th><th>Interface</th><th>Metric</th></tr>
<tr><td>10.10.10.0</td><td>192.168.0.2</td><td>255.255.255.0</td><td>LAN</td><td>0</td></tr>
<tr><td>192.168.0.0</td><td>0.0.0.0</td><td>255.255.255.0</td><td>LAN</td><td>0</td></tr>
<tr><td>0.0.0.0</td><td>0.0.0.0</td><td>255.255.255.255</td><td>WAN</td><td>0</td></tr>
</table>
If your router will support this configuration, this is an easy way to accomplish what (I believe) you want to do.

Good Luck.

Back to Networks Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums