Pinging IP located on another interface


 
Thread Tools Search this Thread
Special Forums IP Networking Pinging IP located on another interface
# 1  
Old 06-17-2012
Pinging IP located on another interface

Hi,

I have a rather strange IP question...

Here's my problem:
  • I have a Linux box (call it "turing") with 2 NICs.
  • One network interface (eth0) has an IP assigned, say 192.168.42.50.
  • The other interface (eth1) is up, but has no IP yet.
My question: is it possible to determine from another computer connected to eth1 per ICMP echo request that the IP 192.168.42.50 is already assigned to my box "turing"? IOW:
  • the ICMP Echo request comes from eth1
  • the IP asked in the request is assigned to eth0
  • What I'd want to achieve: turing sends ICMP reply through eth1.
I am not sure if that's make any sense, or is possible...

You may wonder why on the earth I'm trying to solve such a twisted problem... It's a epic story... But in essence that is the problem (shaved to the bone) I need to solve for some new use cases of a system with bad architecture that I can't fix because it would break compatibility with other systems Smilie

Thanks,
/NH2
# 2  
Old 06-17-2012
Simple answer: no.

Longer answer: The hosts connected to eth1 won't even know it's there, because without an IP it won't send a ARP announce, or react to an ARP request, which is needed to get the destination MAC address. In a switched environment the port it's connected to probably would even be ignored (except maybe for Ethernet broadcasts).
# 3  
Old 07-06-2012
a> pludi is correct.

b> If you explain what you're trying to do, one of us might have an idea as to how to achieve it. e.g. Is there a certain kind of service you're trying to run? are you trying to reach some certain level of performance? Is there something about your network topology that leads you to feel that in one interface and out the other would be crucial or superior?
# 4  
Old 07-06-2012
I think That I understand the question being asked by NH2.

There's a system with two interfaces A and B connected to A and B LAN's. Interface A is up and working with an ip address and LAN A users can access it.

Interface B is down (no ip address) but is there a way that LAN B users could be told (by enquiring on the MAC address or something) that the system has an alternative address on LAN A (assuming of course that there is a gateway between LAN A and LAN B that they could go through).

The only answer that I can think of (and I'm not a networking guru) is, yes, let them call for the system by name and use a DNS server.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Emergency UNIX and Linux Support

Script for pinging continuously

Hi, I need to set up a script that would write the results of the ping command from one AIX server to another file may be every minute. Like this I need to gather the data for a period of 24 hours. Can someone please help me with this? G (5 Replies)
Discussion started by: ggayathri
5 Replies

2. UNIX Desktop Questions & Answers

Pinging Host

I need to ping websites and I need to see which one has the highest delay. My problem is I need to extract the name Facebook and the time=74.0 ms using awk. I need help doing this please... PING facebook.com (173.252.90.36) 56(84) bytes of data. 64 bytes from... (5 Replies)
Discussion started by: 5sku5
5 Replies

3. Shell Programming and Scripting

Pinging a domain

how can you ping a domain and store the ip? like given a url in a variable $url how can i ping it? also how can i find the local server's ip address on a cpanel server? (i have multiple servers and didnt want to hard code it in) (basically i want to check the domain accounts on the server,... (11 Replies)
Discussion started by: vanessafan99
11 Replies

4. Solaris

Server Pinging Problem

Dear all, I face some problem as below. I have a sun fire 280r server in a network. From that server i am able to ping any system in any network. But i am facing the problem when i try to ping the server from outside netwok. Once i give ping command in the server then only i try to... (1 Reply)
Discussion started by: sudhansu
1 Replies

5. SCO

Change SCO - GUI or Desktop interface to DOS based interface

Hi all I have installed a demo version of SCO OpenServer 5.0.2, I finally found it is Desktop Interface, I would like to know how to change its interface to dos based interface? If you have any ideas, please tell me then. Thank you (2 Replies)
Discussion started by: TinhNhi
2 Replies

6. Shell Programming and Scripting

Forking and Pinging

Keep in mind that I haven't done Perl scripting for a LONG time, so I'm quite rusty. This is what I would like to do: - using fork, create 3 or 4 processes to read 3 or 4 different text documents containing server names or IP addresses - in each of those processes, Perl will ping each of those... (7 Replies)
Discussion started by: kooshi
7 Replies

7. Solaris

Command line Interface or GUI Interface not shown on solaris

Dear all, I am a newbie in solaris and I need your advice. I have a Solaris version 5.9 installed on Sunfire V240. I am able to ssh the machine from putty remotely. My problem is that I cannot see the display from KVM switch I have connected to it. I need also to be able to see the GUI... (2 Replies)
Discussion started by: mbouster
2 Replies

8. Shell Programming and Scripting

pinging an ip

Hi, How to ping an ip from an unix machine. Can you please let me know the exact command. I used and i got the below error ping 171.18.17.2 bash: ping: command not found Thanks n regards Ammu (1 Reply)
Discussion started by: ammu
1 Replies

9. AIX

pinging IP's in a file

Hey all. I have a long list of IP addresses I want to ping. The IP's are located in a flat file "ping_info.dat". I was wondering what the best way to go about this would be. Can someone help me out? (2 Replies)
Discussion started by: jalge2
2 Replies
Login or Register to Ask a Question

Featured Tech Videos