Package: iputils-ping
Version: 3:20020927-6

Description:
The man page for ping states that the (source) interface address may be
specified by using the option -I followed by the ip address or interface
name.
But the interface name lo (as listed in the output of ifconfig) is not
correctly transformed to the ip address attached to the loopback
interface. Instead (at least in my case) the ip address from the
interface eth0 is used.
The option '-I eth0' works correctly.

In the following transcripts you can see the specified interface and the
used (source) ip address in the first line of output. (I think the two
following commands should be equal.)

$ ping -I lo 192.168.1.2  # wrong source ip address used
PING 192.168.1.2 (192.168.1.2) from 192.168.1.2 lo: 56(84) bytes of data.
64 bytes from 192.168.1.2: icmp_seq=1 ttl=64 time=0.156 ms

$ ping -I 127.0.0.1 192.168.1.2  # correct source ip address used
PING 192.168.1.2 (192.168.1.2) from 127.0.0.1 : 56(84) bytes of data.
64 bytes from 192.168.1.2: icmp_seq=1 ttl=64 time=0.183 ms

The output of the above specified ping commands corresponds to the
actually used source ip address in the ip packets (verified with wireshark).

Kernel-version: 2.6.18-5-486
Linux version: Debian GNU/Linux 4.0


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to