Connect two computers to a Server

0

I have a computer and its Motherboard has two LAN Ports like in this image:

enter image description here

I have two other computers that I would like to connect to this computer.
How should i do this?

Milad Sobhkhiz

Posted 2011-09-17T19:24:54.897

Reputation: 251

Answers

2

If the Internet connection is not important, all you need is a pair of crossover UTP cable. Then, connect server with the client PC's, and configure IP's on every host. Simplest way, is to go with something like

  • 10.0.0.1 for server
  • 10.0.0.2 for PC1
  • 10.0.0.3 for PC2

For such network, mask is not very important, but you must use max. 29 bit mask (255.255.255.248). This mask MUST be the same on every host (both server and clients). You don't need to set up default gateway nor DNS servers.

And done.

mcmajk3l

Posted 2011-09-17T19:24:54.897

Reputation: 46

thanks for helping but server has two Ethernet port i should assign 10.0.0.1 for both of them? – Milad Sobhkhiz – 2011-09-17T20:29:40.130

1Damn, right. Each interface must have its own IP address, so on server i.e. eth0 - 10.0.0.1, eth1 - 10.0.0.2 – mcmajk3l – 2011-09-17T20:34:26.750

is important to use crossOver cable? – Milad Sobhkhiz – 2011-09-17T20:39:35.800

2It depends on cards installed on your device. If they support auto mdi(x), it's not necessary to use crossover. If not, simple, straight-through cable won't even work. Best way to check this, is to connect two of these computers with a straight-through cable. When LED's won't even blink - you need crossover. ;) – mcmajk3l – 2011-09-17T20:44:44.580

i do this works and use crossOver cable between server and pc1 and get ping very well

but between server and pc2 used a Lan cable. after that i ping from server to pc2 and seys Unreachanle, while the LED`s where blinking!!! – Milad Sobhkhiz – 2011-09-17T20:55:26.083

1I'd recommend using a hub or switch, if you want each computer to be able to talk to the other. – Daniel R Hicks – 2011-09-17T21:02:42.380

Well, that's odd, they blink all the time? They shouldn't as there is no electric circuit... Although try to connect them with the crossover cable, and then ping. – mcmajk3l – 2011-09-17T21:03:20.740

5

If you want this computer connected to the internet then you will have to connect all three up to a switch, if the server, or other device on the networkm is acting as a DHCP then they will pick up addresses from that, if not you will have to assign them.

You could also mess about connecting the LAN ports of the 3 PC's with ethernet cables (Might have to be crossover cables depending on the NIC's available) Set the IP addresses into a correct range and they should all be able to communicate with each other.

Joe Taylor

Posted 2011-09-17T19:24:54.897

Reputation: 11 533

Easiest is the router/switch, which you can pick up from a store. Or get one used from Craigslist for practically nothing. – Keltari – 2011-09-17T19:43:29.797

No. internet is not important. – Milad Sobhkhiz – 2011-09-17T19:47:33.957

I want just connect thise clients to this server and i request you for say step by step – Milad Sobhkhiz – 2011-09-17T19:48:33.003

3For step-by-step, we're gonna need to know the Operating Systems on the server and the two other computers – Canadian Luke – 2011-09-17T19:53:22.440

i want know about networking steps. – Milad Sobhkhiz – 2011-09-17T20:08:52.643

be shre that i can handle my open suse :) – Milad Sobhkhiz – 2011-09-17T20:09:13.550

@Milad Sobhkhiz 1. Buy an ethernet switch and 3 ethernet cables. 2. Power on the switch. 3. Connect each of the 3 cables to the switch, and the other ends of the cables into your 3 PCs. – nos – 2011-09-17T21:46:17.707

@nos - He will also need to set all interfaces to the correct IP addresses. – Joe Taylor – 2011-09-17T22:35:19.470

0

You do not need to set interfaces to correct addresses unless you are using a Server Operating System which has default IP addressing TURNED OFF. By default, workstation operating systems - Linux, OSX, Windows, have default IP addressing TURNED ON. (and it's been that way for many years now). EVEN IF THERE IS NO DHCP MODEM/ROUTER, workstations by default will all choose interoperable IP addresses and subnet.

user165568

Posted 2011-09-17T19:24:54.897

Reputation: 421