"Xiaochuan Shen" <(E-Mail Removed)> wrote:
>> Generally speaking, "pings" are routed in exactly the same way as all
>> other IP packets.
>>
>
>So this can confirm that pinging the host's own NIC IP address will only
>induce the packets sending from "ping" program to "kernel" and then "kernel"
>to "ping" program. The echo request will not even be sent to the physical
>NIC...
What you describe is correct.
>I think I can actually observer this:
>when pinging the local NIC's IP, the LED on the NIC doesnt blink, nor does
>the LED on the switch to which the NIC is connected...
>If the packet only travel between ping programme and the kernel, this
>explains why the LED doesnt blink..
Here's what you want to do:
>ifconfig
...
>ping -c 10 your_hostname
...
>ifconfig
...
The "ping" can be directed at any address of a NIC
which shows up in the ifconfig output. What you want to
look at are the numbers for RX packets and TX packets.
If your system is quiet (or better yet if you have an
unused interface that is enabled), there will be little
or no change to the packet counts after the ping
command. However, take a look at the packet counts for
the "lo" device! That is where the packets are going.
The kernel obviously knows every IP address that is
assigned to it, and *any* packet addressed to any of
those IP addresses will be sent to the loopback device.
Simple as that.
--
Floyd L. Davidson <http://www.apaflo.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska)
(E-Mail Removed)