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-17-2010, 07:42 PM   #1
ritu.kaur
LQ Newbie
 
Registered: Sep 2010
Posts: 3

Rep: Reputation: 0
Ping between 2 eth ports on the same machine


Newbie to linux.

I have eth1 and eth2 connected with back to back cable on the same machine.

I configure eth1 with 11.11.11.11 and eth2 with 11.11.11.14.

I use ping -I eth1 11.11.11.14, I get Destination Host Unreachable...

using tcpdump on eth1 shows ARP request broadcast being sent out

using tcpdump on eth2 shows ARP request received, no ARP reply being sent out

Not sure whether this config is supposed to work?

Inputs appreciated.
 
Old 09-17-2010, 08:17 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Most cables are patch cables. While that isn't really bad you should have a cross over cable to be sure. Most newer nic's can auto correct for the wrong cable but it fails sometimes. Usually you have to power off the system then connect the cable. It may not auto correct if you plug it in after it has power. I do mean power from ac plug too. Many nics can be powered when the system is off.

If not that then test the cable.

And I assume icmp is not blocked, so you have to check that also.
 
Old 09-25-2010, 08:33 AM   #3
ritu.kaur
LQ Newbie
 
Registered: Sep 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks, for the inputs, rechecked the cables and power-off/power-on machine, it works fine now.
 
  


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
Can't Ping Linux CentOS 5.3 Machine to XP SP2 Windows Machine Moderns Linux - Networking 20 11-04-2009 12:33 AM
not able to ping a machine but can do ssh to machine , wanna run vnc client amolgupta Linux - Software 4 07-28-2009 05:17 PM
(Mepis) Windows machine cannot ping linux machine by IP mabtjie Linux - Networking 1 11-08-2008 09:54 AM
how to switch eth for the default one on my multi card machine? wucan Linux - Networking 1 04-21-2006 02:41 AM
[ DNS ] - Master and Slave in one machine with 2 eth? maginotjr Linux - Networking 1 12-06-2005 08:08 AM

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

All times are GMT -5. The time now is 04:30 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