LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-06-2013, 10:45 AM   #1
Ivv
LQ Newbie
 
Registered: Sep 2013
Posts: 2

Rep: Reputation: Disabled
Ping between two interfaces in the same machine


Hi,
I have a pc with two Ethernet interfaces linked by a cable.
I'm trying to ping a interface from the other.

eth3 10.0.0.33 Masque:255.255.0.0
eth4 10.0.0.99 Masque:255.255.0.0

# ping 10.0.0.99 -I eth3
PING 10.0.0.99 (10.0.0.99) from 10.0.0.33 eth3: 56(84) bytes of data.
From 10.0.0.33 icmp_seq=1 Destination Host Unreachable

Routes are the default ones:
10.0.0.0 * 255.255.0.0 U 0 0 0 eth3
10.0.0.0 * 255.255.0.0 U 0 0 0 eth4

What should I do?

Thanks a lot!
 
Old 09-06-2013, 12:44 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,269

Rep: Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314
What you are doing makes no sense. If you send a packet to 10.0.0.42, which interface do you expect it to be sent on? What is your default gateway?
 
Old 09-06-2013, 04:00 PM   #3
Ivv
LQ Newbie
 
Registered: Sep 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
What is making no sense?
Just tell me what ip/mask and routes should I set.
I try many things but I didn't make it.
Thks
 
Old 09-06-2013, 04:44 PM   #4
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,269

Rep: Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314
Why are you trying to put two interfaces in the same subdomain?
 
Old 09-06-2013, 04:47 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,276

Rep: Reputation: 3657Reputation: 3657Reputation: 3657Reputation: 3657Reputation: 3657Reputation: 3657Reputation: 3657Reputation: 3657Reputation: 3657Reputation: 3657Reputation: 3657
From a technet page.

"If you look at RFC792 on the ICMP protocol it shows that destination unreachable messages are generated by gateways when there is either no route to the destination host or some other protocol/port issue."

While I tend to agree on that there is a lot of other things going on too with this. Part is a design of the OS and IPv4 and actual chips in the nic.


I kind of think this sort of test is useless and that other tools would be better. Consider changing this entire test so that you are doing a real test from a subnet to a router back to the different subnet.
 
  


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
Unable to ping between two interfaces on the same box langou00 Linux - Networking 3 07-27-2012 11:20 AM
I am not able to ping windows machine through my virtual redhat linux machine which vasant1984 Linux - Newbie 2 04-25-2012 11:46 AM
Can't Ping Linux CentOS 5.3 Machine to XP SP2 Windows Machine Moderns Linux - Networking 20 11-04-2009 01: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 06:17 PM
(Mepis) Windows machine cannot ping linux machine by IP mabtjie Linux - Networking 1 11-08-2008 10:54 AM

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

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