LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-12-2013, 11:30 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
What is the necessary hardware to connect two computers in a LAN configuration?


Hi: The scenario:

(a) No knowledge whatsoever about LAN.
(b) Two desktops at home, one of them connected to the internet by only using a cable modem.
(c) The other one stands alone, up to now.
(d) Each machine has only one LAN chip.

I aim at:
(d) Having communications between both computers.
(e) At least one computer must have internet.

Some questions: What is the minimum hardware I need to make the connection? Do I need a router? And the cables? Are they commercially available?

Last edited by stf92; 02-13-2013 at 05:57 AM.
 
Old 02-13-2013, 01:37 AM   #2
Stéphane Ascoët
Member
 
Registered: Feb 2004
Location: Fleury-les-Aubrais, 120 km south of Paris
Distribution: Devuan, Debian, Mandrake, Freeduc (the one I used to work on), Slackware, MacOS X
Posts: 251

Rep: Reputation: 49
You just need a crossed RJ45 cable.
 
1 members found this post helpful.
Old 02-13-2013, 02:12 AM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
OK. I see in the internet that from each computer a cable goes to the hub or switch. I guess from the hub a cable goes to the cable modem. But then these are three cables. I'm afraid I did not get you.
 
Old 02-13-2013, 02:14 AM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
You may have to get an additional network card for the computer that is already connected to network so as to use crossover cable. Or you can get another router with atleast 2 ports.
 
Old 02-13-2013, 02:23 AM   #5
displace
Member
 
Registered: Jan 2013
Location: EU
Distribution: Debian
Posts: 268

Rep: Reputation: 25
A switch is normally used on an internal network. You could connect both computers and a modem via a switch, but you would have to setup internet access on both desktops. A typical NAT setup is to use a router, connect the modem to its WAN port and the desktop computers to its LAN ports. The computers are configured with DHCP, and the router connects to the internet.
 
Old 02-13-2013, 05:39 AM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Most modern cable modems act already as router, not as modem. You can easily check that with checking how your machine gets the network interface set up. If the network interface is using DHCP to get its settings the modem acts as router. In that case you need nothing but a switch (hubs are outdated and should not be used) and three cables (Cat5-E). All of these are commercially available.
 
Old 02-13-2013, 05:55 AM   #7
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by displace View Post
A switch is normally used on an internal network. You could connect both computers and a modem via a switch, but you would have to setup internet access on both desktops. A typical NAT setup is to use a router, connect the modem to its WAN port and the desktop computers to its LAN ports. The computers are configured with DHCP, and the router connects to the internet.
So the connection via a switch and the connection via router are two different approaches, or is the router scenario a particular case of the switch connection?
 
Old 02-13-2013, 06:34 AM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by stf92 View Post
So the connection via a switch and the connection via router are two different approaches, or is the router scenario a particular case of the switch connection?
You can see the router as a device that connects different networks, for example the Internet and your local network, while a switch is used to extent an existing network. If your cable modem acts as router you already have a separate home netwrok and just need to extend it with a switch.
 
Old 02-13-2013, 07:43 AM   #9
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by TobiSGD View Post
Most modern cable modems act already as router, not as modem. You can easily check that with checking how your machine gets the network interface set up. If the network interface is using DHCP to get its settings the modem acts as router. In that case you need nothing but a switch (hubs are outdated and should not be used) and three cables (Cat5-E). All of these are commercially available.
Alright. Then:
Street cable goes to MODEM which goes to SWITCH which goes to both computers A and B. Cat5-E is needed for all connections except street to modem, which is a coaxial cable provided by the company.

This, provided I use DHCP, and I have done so up to the present. I can get the Cat5-E cables and, about the switch: they offer me for 10/100Mbits/s. My ISP is presently giving me 1Mbit/s. Does this mean that switch is 100 times faster than I need?
 
Old 02-13-2013, 07:54 AM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,697

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Depends on your ISP but typically in the US basic home cable setup only provides one DHCP IP address. If this is true and your MODEM is not also a router then a switch will not work.
 
Old 02-13-2013, 08:03 AM   #11
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
A physical inspection of the modem reveals it has one I/O connector for the coaxial cable, and two I/O connectors, one labeled USB, the other, Ethernet. I guess this is not enough to know if it is also a router.

I certainly have the model. It's a Motorola Surfboard SB5101i. If I look in google or go to the motorola.com site, what should I look for to know it is also a router?
 
Old 02-13-2013, 08:08 AM   #12
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
it depends, if your modem has only one ethernet plug on the back (which is the likely situation), then you need a router

typical home routers (I would recommend a Linksys router) have a built in 4 port switch
(actually it's a 5 port switch, but to all intents and purposes it's a 4 since port 5 is separated by the router's firmware used as the WAN port, but that's neither here nor there)

thus your network diagram would look something like this

Code:
<wall plug>
    |
    |
 <coax>  
 {modem}
<ethernet>
    |
    |
  <wan>{router}<sw1><sw2><sw3><sw4>
                 |    |    |    |
                 |    |    +----+--{empty}
                 |    |
                 |    +--{computer 2}
                 |
               {computer1}

Last edited by frieza; 02-13-2013 at 08:10 AM.
 
Old 02-13-2013, 08:13 AM   #13
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Quote:
Originally Posted by Stéphane Ascoët View Post
You just need a crossed RJ45 cable.
not necessarily true:
Quote:
Originally Posted by lazlow View Post
If either end is GigE then the above statement is not true. GigE will automatically handle doing this without using a crossover cable.
however passing internet packets between the 2 pc's will require the op to know about iptables rules:
http://www.linuxquestions.org/questi...6/#post3804866
(probably easier for them to buy an off-the-shelf router for like 40 bucks).
 
Old 02-13-2013, 08:16 AM   #14
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
@frieza:

I'm telling you. It has one and only one Ethernet jack and one (empty, i.e., not used) USB jack.

Last edited by stf92; 02-13-2013 at 08:18 AM.
 
Old 02-13-2013, 08:23 AM   #15
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
The following link, http://www.ehow.com/how_8540501_conf...rd-router.html, by its name is telling the sb5101 is a router too! However its the only place where the word "router" is mentioned.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to connect ubuntu computers into LAN jennifer.ayag Linux - Networking 3 12-04-2008 06:58 AM
list computers in LAN Lotharster Linux - Newbie 2 01-08-2006 11:10 AM
No Internet but LAN and VPN connect LAN work fine??? xavior SUSE / openSUSE 7 11-09-2005 01:14 PM
KDE Lan Browser doesn't display available LAN computers dance2die Linux - Newbie 2 01-16-2005 08:14 PM
I cannot see my own server from computers on my LAN proroer Linux - Networking 2 09-07-2003 11:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration