LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-20-2014, 05:13 AM   #1
ak1441
LQ Newbie
 
Registered: Apr 2014
Posts: 5

Rep: Reputation: Disabled
[RHEL 5.4] Unable to ping two computers connected with a lan cable.


Hello everyone,

I have connected two laptops with a lan cable, and I'm trying to ping each other after giving them static IP's.
The error I am getting is Destination Host Unreachable. Please help ASAP.

Thank You.
 
Old 04-20-2014, 07:50 AM   #2
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,114

Rep: Reputation: 494Reputation: 494Reputation: 494Reputation: 494Reputation: 494
Have you set a default route on each system, pointing at the other? The command 'netstat -r' will show the routing table. You should have an entry like this:

Quote:
netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
default cisco 0.0.0.0 UG 0 0 0 eth0
The gateway on your systems should show the ip address of the other system.
 
Old 04-20-2014, 11:09 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,597

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
@OP
If you want to connect both laptops directly to each other, you'll need a crossover cable.
No need to specify gateways or routes. Just assign them static IPs as you already have.

Regards
 
1 members found this post helpful.
Old 04-20-2014, 11:58 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,985

Rep: Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447
this is the very old rhel5.4
the current is 5.10

5.4 is 6 versions out of date

with rhel6.5 as the current

the older LEGACY rhel5 is good for OLD legacy hardware

so are these two laptops OLD 2000 to 2005 laptops
 
Old 04-20-2014, 12:16 PM   #5
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,300

Rep: Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720
Quote:
Originally Posted by bathory View Post
@OP
If you want to connect both laptops directly to each other, you'll need a crossover cable.
No need to specify gateways or routes. Just assign them static IPs as you already have.

Regards
Only when using 15+ year old systems.
https://en.wikipedia.org/wiki/Ethern...atic_crossover
 
Old 04-20-2014, 04:00 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,985

Rep: Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447
current eth ports can use a port to port

if you do have old hardware requiring the use of rhel5 ( you might want to upgrade to the current legacy rhel5.10)

maybe a crossover might be needed
but most likely not
 
Old 04-21-2014, 06:23 AM   #7
ak1441
LQ Newbie
 
Registered: Apr 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by camorri View Post
Have you set a default route on each system, pointing at the other? The command 'netstat -r' will show the routing table. You should have an entry like this:


The gateway on your systems should show the ip address of the other system.
The output of netstat -r is
----------------------------------------------------------------------------------------------
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 192.168.1.105 0.0.0.0 UG 0 0 0 eth0
-----------------------------------------------------------------------------------------------
192.168.1.105 is the ip of other laptop. I am encountering a new problem on the laptop with ip 105. On bringing up the eth0 of that system, error displayed is "device eth0 has different MAC address than expected, ignoring".

Also the ifconfig eth0 up shows :
-------------------------------------------------------------------
eth0: unknown interface: no such device
-------------------------------------------------------------------

And the output of netstat -r is empty kernel routing table.
Also the output of ifconfig -a has no entry for eth0.
 
Old 04-21-2014, 06:25 AM   #8
ak1441
LQ Newbie
 
Registered: Apr 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
this is the very old rhel5.4
the current is 5.10

5.4 is 6 versions out of date

with rhel6.5 as the current

the older LEGACY rhel5 is good for OLD legacy hardware

so are these two laptops OLD 2000 to 2005 laptops
I am downloading RHEL 6.5. I have x86_64 architecture, i5.
 
Old 04-21-2014, 06:47 AM   #9
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,114

Rep: Reputation: 494Reputation: 494Reputation: 494Reputation: 494Reputation: 494
Because these are older machines, it is possible you may need a cross over cable. I can not be sure, just keep that in mind.

The one machines routing table looks OK. Your machine 192.168.1.105 appears to be the problem.

If you run 'ifconfig' without specifying any adapter, does it show any active interfaces? Possibly eth0 is now eth1??? Just a thought.
 
Old 04-21-2014, 09:18 AM   #10
ak1441
LQ Newbie
 
Registered: Apr 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by camorri View Post
Because these are older machines, it is possible you may need a cross over cable. I can not be sure, just keep that in mind.

The one machines routing table looks OK. Your machine 192.168.1.105 appears to be the problem.

If you run 'ifconfig' without specifying any adapter, does it show any active interfaces? Possibly eth0 is now eth1??? Just a thought.
It shows only lo, and no other device. And, the machines are not older I guess. Both are x86_64 architectures.
 
Old 04-21-2014, 09:36 AM   #11
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,051

Rep: Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852
check this out:
http://www.linuxquestions.org/questi...6/#post3804866
 
Old 04-21-2014, 01:18 PM   #12
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,985

Rep: Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447
well you ARE using RHEL 6.5 now
so you did create an account with redhat
this would be the 30 day TRIAL!!! version???
or
did you already buy the REQUIRED support contract
https://www.redhat.com/apps/store/desktop/

if you did not buy the required license and are not going to
-- then do not use RHEL--

install CentOS 6.5
it is a free rebuild of RHEL 6.5
 
Old 04-23-2014, 01:19 AM   #13
ak1441
LQ Newbie
 
Registered: Apr 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
well you ARE using RHEL 6.5 now
so you did create an account with redhat
this would be the 30 day TRIAL!!! version???
or
did you already buy the REQUIRED support contract
https://www.redhat.com/apps/store/desktop/

if you did not buy the required license and are not going to
-- then do not use RHEL--

install CentOS 6.5
it is a free rebuild of RHEL 6.5
I have downloaded it from torrent. And, on installation it is showing same problems as I have mentioned earlier. On typing :

ifconfig eth0 up

It says that

eth0: unknown interface: No such device
 
Old 04-23-2014, 03:44 AM   #14
ilesterg
Member
 
Registered: Jul 2012
Distribution: Arch, CentOS, OpenSUSE Tumbleweed KDE
Posts: 526

Rep: Reputation: 56
Quote:
Originally Posted by ak1441 View Post
I have downloaded it from torrent.
You shouldn't be confessing that haha

You have better choices: Oracle Linux and CentOS
 
Old 04-23-2014, 12:38 PM   #15
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,985

Rep: Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447
if you are NOT going to pay for Redhat
Then DO NOT USE IT!!!!
you will NOT be able to install software unless you BUY the REQUIRED support contract !!!


go to redhat
REGISTER WITH REDHAT
grab a official copy of RHEL 6
install and REGISTER the install ( desktop inon you click on)
BUY the required support contract!!!!!!!!!!
--- a MUST DO !!!!!!!!!!

--- single desktop install ---
https://www.redhat.com/apps/store/desktop/


or

install the FREE!!!!!!!!! rebuild called
" CentOS 6.5 "
http://centos.org/
 
  


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
system not connected with LAN by cross over cable mposwal Linux - Newbie 2 12-02-2010 12:46 AM
cannot multicast when one of the computers connected to the internet in a LAN ilagnateeg Linux - Networking 1 04-12-2010 02:59 AM
finding the connected computers in lan kaushiksolanki Linux - Networking 2 03-02-2009 01:30 AM
sharing VPN access with lan + after vpn connected unable to ping lan/public ip xxx_anuj_xxx Linux - Networking 1 03-14-2008 03:50 AM
can't ping other computers in LAN or Internet Melsync Linux - Networking 3 09-08-2006 07:27 PM


All times are GMT -5. The time now is 06:09 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration