Got it

Capture packets using TCPDUMP from VCN Server to verify packet loss

Latest reply: Oct 8, 2018 16:27:26 1323 2 6 0 3

 

1.       Is needed to install the tcpdump tool in our server to capture packets, the file is attached to this post you need to decompress and copy the file into the /sbin directory, you can use WinSCP to copy the file.

2.       After copy the file in the /sbin directory the command will be available.

3.      We can créate a directory to sabe all our captures in the same folder, for example we can create a test_capture:mkdir /home/ test_capture

4.       We can move to cd /home/ test_capture, to execute the command and the files will be stored in this directory:

5.       The example command is the following:

                              

                              tcpdump -i interface_name-X -vvv -n -s0 host XXX.XXX.XXX.XXX-w filename.cap

 

Parameters description:

–i: for interface, is the interface we are going to capture the traffic, it can be for exmaple –i ethX or -i  bondX (X is the number of port or bond).

-X: When parsing and printing, in addition to printing the headers of each packet, print the data of each packet (minus its link level header) in hex and ASCII. This is very handy for analysing new protocols.

-vvv: for a Full and more detailed verbose output

-n: to do not convert ip address to names

-s0: to set the snaplen to 0

host XXX.XXX.XXX.XXX to set the IP of the host we need to trace (to trace just one camera as example)

-w filename.cap to set the name of the file it will be created.


Capture packets using TCPDUMP from VCN Server to verify packet loss-2770643-1


We need to stop the capture with Ctrl+C, then we can change the permissions to copy to an usb to use a sniffing tool to analyze.

This article contains more resources

You need to log in to download or view. No account? Register

x

Great!!!Capture packets using TCPDUMP from VCN Server to verify packet loss-2770645-1
View more
  • x
  • convention:

Wow! Excellent post. Thanks @Marco_Munoz for sharing Capture packets using TCPDUMP from VCN Server to verify packet loss-2772323-1
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.