LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-22-2006, 12:47 PM   #1
jhwatts
LQ Newbie
 
Registered: Sep 2006
Posts: 21

Rep: Reputation: 0
Networking Two Computers


I am trying to network two computers using a 5 port LINKSYS hub. I am running Scientific Linux on both PC's. It is essentially a souped up version of RedHat. I can go to the Network Configuration wizard and both PC's finds the network cards but gives me a check cable error when I try to activate them. I have checked all the connections and every thing seems fine. The hubs lights are on for both PC's. Can I hook the two computers together simply with one cable going from one to the other? Am I missing some as far as the OS goes? Can somebody help me?
 
Old 09-22-2006, 01:50 PM   #2
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
To answer parts of your question: yes, it's possible to connect two computers with one cable (provided both computers have ethernet interfaces, but *all* modern computers have that). However, the cable needs to be a crossover cable (hold the cable in a very oblong U-shape (*not* an O-shape), and look at the plugs at the ends; iff the colored strips of one plug are in the opposite order of the strips on the other plug, it's a crossover cable).

To actually make the computers talk, you need the addressing set up. I'd suggest you give them static private addresses; on my debian box, I'd write the following in /etc/network/interfaces (try grep -r "iface.*lo.*inet loopback.*" /etc/* if red hat places it differently from debian):
Code:
auto lo
auto eth0

iface lo inet loopback

iface eth0 inet static
  address 192.168.1.1
  netmask 255.255.255.0
  network 192.168.1.0
  broadcast 192.168.1.255
(assuming you connect the boxes via eth0). Put the same file on the other host, but with 192.168.1.1 replaced by 192.168.1.2. Now, try pinging 192.168.1.1 from 192.168.1.2 and vice versa. You may also want to find out what /etc/hosts does.
 
Old 09-22-2006, 04:05 PM   #3
dogged28
Member
 
Registered: Jul 2006
Location: Lubbock, Tx.
Distribution: Ubuntu Dapper Drake
Posts: 184

Rep: Reputation: 30
one question. you said you checked all the connections but still get the error right? did you test the cable itself? a bad cable can still let lights work but not transfer info. just a thought.
 
Old 09-24-2006, 05:43 PM   #4
arno
Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515

Rep: Reputation: 30
I have had some problems with 3-com nicīs i stopped using them and now i use realtec (RTL)-8139 cardīs without a problem.
 
  


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
Need help with 2 computers networking Mikesoft Linux - Networking 6 05-04-2006 05:19 PM
Networking Two Home Computers !? SuseBoy Linux - Networking 4 08-20-2003 10:54 PM
Networking three computers srinuallada Linux - Networking 1 08-01-2002 04:31 PM
networking 2 computers Susan Linux - Networking 1 10-26-2001 03:23 PM
networking two computers dilberim82 Linux - Networking 6 05-21-2001 12:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:13 AM.

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