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-17-2018, 09:44 AM   #1
simonSouv
LQ Newbie
 
Registered: Jul 2018
Location: Paris, France
Posts: 2

Rep: Reputation: Disabled
tcpdump output shows IP packet with src/dest information


Hello,

I'm executing tcpdump to 'snoop' network traffic on my server for a few seconds with the command

timeout 5tcpdump -i bond0 -l -w /tmp/simon.tcpdump ip

I then read the file with the command and the result will feed a python script to do some statistics

tcpdump -N -v -r /tmp/simon.tcpdump > /tmp/simon.txt

The python script will analyze the context based on a regexp

I noticed some 'IP' lines don't contain source or destination information, for example

08:48:49.160615 ARP, Ethernet (len 6), IPv4 (len 4), Reverse Request who-is 00:50:56:ae:66:68 (oui Unknown) tell 00:50:56:ae:66:68 (oui Unknown), length 46
08:48:49.160616 IP (tos 0x0, ttl 64, id 43569, offset 0, flags [DF], proto TCP (6), length 2948)
08:48:49.160615 ARP, Ethernet (len 6), IPv4 (len 4), Reverse Request who-is 00:50:56:ae:66:68 (oui Unknown) tell 00:50:56:ae:66:68 (oui Unknown), length 46 dell965srv.39783 > dell964srv.44916: Flags [.], cksum 0x7672 (incorrect -> 0xbc47), seq 11618:14514, ack 896, win 501, options [nop,nop,TS val 15829430 ecr 1898668321], length 2896

I'm surprised to see a 'IP' package without this information. Could anyone why or redirect me to any place having any explanations?

Thanks

Simon
 
Old 07-18-2018, 02:38 AM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
00:50:56:ae:66:68
Is that, perhaps, the MAC address of the server on which you're running your commands? Just a thought.
 
  


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
OpenVpn and tcpdump output shows activity on two ip ranges. bulgin Linux - Security 1 04-09-2018 05:05 PM
[SOLVED] strncpy(dest, &src[i], LEN): is this correct? stf92 Programming 6 01-12-2015 11:11 AM
rsync in conjunction with the --link-dest option does not output deleted files maikelmeyers Programming 3 01-04-2013 05:06 PM
Looking for tcpdump syntax to start hex output at a given byte offset in the packet silentquasar Linux - Networking 1 08-06-2011 06:03 AM
determine tcpdump packet loss Tiago Sousa Linux - Newbie 1 12-15-2005 11:37 AM

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

All times are GMT -5. The time now is 02:03 PM.

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