Ping and tcpdump at the same time
tcpdump -i eth0 icmp
which will list
ping traffic on interface
You can use
tcpdump -n icmp to filter on ping requests and replies. I added the
-n switch to prevent name lookups. You might have several interfaces in your host so it might be necessary to add the
-i ethX switch to specify the correct interface.
Note that the filter - icmp in this case - should be the last part of the command.