LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-16-2013, 01:44 PM   #1
hamedhsn
Member
 
Registered: Feb 2010
Distribution: opensuse 11.2
Posts: 57

Rep: Reputation: 0
tcpdump does not capture the ping and traceroute packets


Hi

I ran tcpdump on both side and the sent ping and traceroute probes but none of the side capture any thing i used this command

Code:
bash-4.0# /usr/sbin/tcpdump -i eth0 -vvv
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
^C
0 packets captured
0 packets received by filter
0 packets dropped by kernel


any idea?

Thanks
 
Old 07-16-2013, 02:12 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,853

Rep: Reputation: 161Reputation: 161
Try "tcpdump -i any" command. The package may go to other interface.
 
Old 07-17-2013, 04:15 AM   #3
hamedhsn
Member
 
Registered: Feb 2010
Distribution: opensuse 11.2
Posts: 57

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by nini09 View Post
Try "tcpdump -i any" command. The package may go to other interface.
i tried but not luck. the thing is when i send some requests from an application it captures the traffic but for these probes it doesnot.
 
Old 07-17-2013, 02:22 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,853

Rep: Reputation: 161Reputation: 161
How do you do the ping, ping IP address or domain name?
 
Old 07-17-2013, 02:47 PM   #5
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Are you positive that eth0 is the interface being used?

Try looking at the output of 'ifconfig' to see your packet counts.
 
Old 07-17-2013, 03:11 PM   #6
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
tcpdump also has an option to show the dumps right away. Dunno the exact option but might be that it just comes in late(er).
Also maybe use the proto option and set it to icmp...
 
Old 07-17-2013, 03:17 PM   #7
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Quote:
Originally Posted by zhjim View Post
tcpdump also has an option to show the dumps right away. Dunno the exact option but might be that it just comes in late(er).
Also maybe use the proto option and set it to icmp...
His command is listening for all traffic on eth0, and 'nothing' is showing up. He needs to verify that he is listening to the right interface first.
 
Old 07-17-2013, 04:08 PM   #8
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by nini09 View Post
Try "tcpdump -i any" command. The package may go to other interface.
He tried but no luck... so maybe hes just impatient and did not wait long enough for the frame buffer to fill?
 
Old 07-17-2013, 04:10 PM   #9
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
need more info from OP, before any more educated guesses can be made:

'ifconfig' output
'ip a' output
 
Old 07-18-2013, 04:16 AM   #10
hamedhsn
Member
 
Registered: Feb 2010
Distribution: opensuse 11.2
Posts: 57

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by nini09 View Post
How do you do the ping, ping IP address or domain name?
i tried both nothing from any of them..
 
Old 07-18-2013, 04:19 AM   #11
hamedhsn
Member
 
Registered: Feb 2010
Distribution: opensuse 11.2
Posts: 57

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by szboardstretcher View Post
Are you positive that eth0 is the interface being used?

Try looking at the output of 'ifconfig' to see your packet counts.
yes..this is the output of ifconfig

Code:
bash-3.2# /sbin/ifconfig 
eth0      Link encap:Ethernet  HWaddr 00:13:72:60:EC:CF  
          inet addr:128.84.154.40  Bcast:128.84.154.127  Mask:255.255.255.128
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2614792902 errors:345 dropped:105220 overruns:0 frame:183
          TX packets:2044956693 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:3190521614 (2.9 GiB)  TX bytes:2992958856 (2.7 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:128559872 errors:0 dropped:0 overruns:0 frame:0
          TX packets:128559872 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:996620717 (950.4 MiB)  TX bytes:996620717 (950.4 MiB)
 
Old 07-18-2013, 04:25 AM   #12
hamedhsn
Member
 
Registered: Feb 2010
Distribution: opensuse 11.2
Posts: 57

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by zhjim View Post
Also maybe use the proto option and set it to icmp...

i checked it with
Code:
/usr/sbin/tcpdump -i eth0 icmp -vvv
but again northing is been captured.
 
Old 07-18-2013, 04:30 AM   #13
hamedhsn
Member
 
Registered: Feb 2010
Distribution: opensuse 11.2
Posts: 57

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by szboardstretcher View Post
'ip a' output
Code:
bash-3.2# /sbin/ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc htb state UP qlen 1000
    link/ether 00:13:72:60:ec:cf brd ff:ff:ff:ff:ff:ff
    inet 128.84.154.40/25 brd 128.84.154.127 scope global eth0
 
Old 07-18-2013, 04:36 AM   #14
hamedhsn
Member
 
Registered: Feb 2010
Distribution: opensuse 11.2
Posts: 57

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by nini09 View Post
Try "tcpdump -i any" command. The package may go to other interface.
this is warning that i get
Code:
bash-3.2# /usr/sbin/tcpdump -i any -vvv
tcpdump: WARNING: Promiscuous mode not supported on the "any" device
tcpdump: listening on any, link-type LINUX_SLL (Linux cooked), capture size 96 bytes
i tried to enable the Promiscuous mode but i get this error though i am root.

Code:
bash-3.2# /sbin/ifconfig eth0 promisc
SIOCSIFFLAGS: Permission denied
 
Old 07-18-2013, 02:21 PM   #15
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,853

Rep: Reputation: 161Reputation: 161
Can a iptable policy drop the packet? Can you disable iptable and try it?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to capture packets from multiple host through tcpdump sagarkha Linux - Newbie 3 04-29-2010 04:04 AM
[SOLVED] How to capture the network packets including 'push' flag with Tcpdump program. windbadboy Linux - Networking 12 07-02-2009 07:09 AM
capture 100 packets tcpdump Fond_of_Opensource Linux - Networking 3 06-14-2007 02:52 AM
tcpdump does not capture all packets logicalfuzz Linux - Networking 1 03-19-2007 12:47 PM
Using Tcpdump and Tethereal to capture packets shanu_technical Linux - Networking 3 06-14-2006 08:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration