Sponsored Content
Special Forums IP Networking Pinging IP located on another interface Post 302657275 by NH2 on Sunday 17th of June 2012 03:38:33 AM
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
 

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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. 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

7. 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

8. 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

9. 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
InternetSharing(8)					    BSD System Manager's Manual 					InternetSharing(8)

NAME
InternetSharing -- simple NAT/router configuration daemon SYNOPSIS
InternetSharing -d DESCRIPTION
InternetSharing is the back-end for the Internet Sharing feature. It is responsible for configuring the network interfaces, the DHCP server bootpd(8), the network address translation daemon natd(8), and the Internet domain name server named(8). named(8) is run in caching-only mode and allows the DHCP server to always offer the same DNS server address to the DHCP clients, regardless of the value of the actual DNS server addresses. The single command line option -d places additional debugging information to stdout/stderr. InternetSharing is launched by launchd(8) both at start-up and when the user turns Internet Sharing on in the Sharing preferences pane. By default, InternetSharing configures the IP addresses for non-AirPort interfaces starting at 192.168.2.1, walking up by one class C network (subnet mask 255.255.255.0) for each subsequent interface i.e. 192.168.3.1, 192.168.4.1, 192.168.5.1, and so on. The AirPort interface by default is assigned 10.0.2.1. CONFIGURATION
InternetSharing reads the property list com.apple.nat.plist stored in the /Library/Preferences/SystemConfiguration. Details of the com.apple.nat.plist are subject to change and are not completely documented here. The plist is a contract between the Sharing preferences pane and InternetSharing. Any details provided here are for informational purposes only. The plist is a dictionary with a single sub-dictionary called NAT containing properties to control which interfaces to use and other set- tings. It may also have a sub-dictionary called AirPort that is used to configure the AirPort interface when it is put into access point mode. One property worth mentioning is SharingNetworkNumberStart. This property controls the behavior of InternetSharing when it configures IP addresses for the local interfaces. The property is encoded as a string containing the dotted decimal network IP address, assumed to be a class C network. For example: <key>SharingNetworkNumberStart</key> <string>192.168.100.0</string> If the SharingNetworkNumberStart appears directly in the NAT dictionary, it controls the starting IP address chosen for the non-AirPort interfaces. If the property appears within the AirPort sub-dictionary, it controls the IP address assigned to the AirPort interface. The purpose of the property is to allow the user to avoid address collisions with existing NAT'd networks. SEE ALSO
bootpd(8), launchd(8), natd(8), named(8) Mac OS X Feburary 26, 2007 Mac OS X
All times are GMT -4. The time now is 01:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy