LinuxQuestions.org
Register a domain and help support LQ
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 01-13-2007, 12:50 PM   #1
Nitin Bhumkar
LQ Newbie
 
Registered: Jan 2007
Posts: 3

Rep: Reputation: 0
Networking two computers using crossover cable


I have two computers one PC and one notebook running redhat linux enterprise 4.
i have tried to connect them with cross over cable .
I have put the computers on same network and subnet masks but both of them dont ping to each other giving a message destination host unreachable on both the computers

gave up finally trying all possibilties

can anyone suggest the seetings needed step by step
 
Old 01-13-2007, 12:59 PM   #2
baltika_no_9
LQ Newbie
 
Registered: Jan 2007
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by Nitin Bhumkar
I have two computers one PC and one notebook running redhat linux enterprise 4.
i have tried to connect them with cross over cable .
I have put the computers on same network and subnet masks but both of them dont ping to each other giving a message destination host unreachable on both the computers

gave up finally trying all possibilties

can anyone suggest the seetings needed step by step

What's the output of the route command?

I assume both interfaces are up

Have you stopped iptables on both machines as a precaution?

Cheers

Last edited by baltika_no_9; 01-13-2007 at 01:02 PM.
 
Old 01-14-2007, 09:34 AM   #3
Nitin Bhumkar
LQ Newbie
 
Registered: Jan 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Well both the interfaces are up, when i try and ping each of the system the message i get to see is destination host unreachable .
I was suggested to mention the ip address of the first system as default gateway for the second and vice versa which unfortunately did not work
iptables are stopped by default.
 
Old 01-14-2007, 12:50 PM   #4
baltika_no_9
LQ Newbie
 
Registered: Jan 2007
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by Nitin Bhumkar
Well both the interfaces are up, when i try and ping each of the system the message i get to see is destination host unreachable .
I was suggested to mention the ip address of the first system as default gateway for the second and vice versa which unfortunately did not work
iptables are stopped by default.

But what does the route command show?

Do you have a hub that you can connect both machines to via straight through cables?

Maybe you could post the contents of the ifcfg-eth* files to see what they contain?
 
Old 01-14-2007, 02:00 PM   #5
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
Post the output of /sbin/ifconfig on both machines.
Did you install and configure samba on both machines?
Does /sbin/ifconfig show that both interfaces have IP addresses?
Are both IP addresses different?
Are both IP addresses on different subnets?

You might try using nmap to tell you which ports are open on the hosts.

If you are using the 192.168.1.0/24 network then the route should look like this:
Code:
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
The default gateway is what you would use to access a host outside of your subnet--usually a router. If you don't access the internet, and don't have another subnet, then you don't need a default gateway.
 
Old 01-15-2007, 05:56 AM   #6
1jnike
Member
 
Registered: Jan 2006
Location: UK
Distribution: Fedora,Mandriva,Debian,Suse,Solaris
Posts: 135

Rep: Reputation: 17
Re:Networking two computers using crossover cable

Hi

Just a quick thought, have you placed the ip address and host name in each others /etc/hosts file.

ie:

computer A /etc/hosts

127.0.0.1 localhost
172.16.0.1 computerA
172.16.0.2 computerB


computer B /etc/hosts

127.0.0.1 localhost
172.16.0.2 computerB
172.16.0.1 computerA
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
networking wierdness with a crossover cable ThoughtWielder Linux - Software 1 02-01-2006 03:33 PM
Network 2 computers with crossover cable uisng IPv6 q14526 Linux - Networking 26 12-16-2005 10:42 AM
internet connection sharing between two computers using crossover cable farnell_mark Debian 1 06-04-2005 05:44 PM
Trouble networking two Linux computers (via crossover cable) lrt2003 Linux - Networking 3 06-29-2004 10:06 AM
networking mandrake to windows via ethernet crossover cable happyoutkast Linux - Networking 9 05-07-2004 02:58 PM


All times are GMT -5. The time now is 03:13 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration