Install tcpdump under Ubuntu and use

Source: Internet
Author: User

Because of the need to test an HTTP protocol in Linux, use the Wireshark grab software--tcpdump under Linux. The specific installation process is as follows:

1. Download online for Libpcap and tcpdump

http://www.tcpdump.org/

2. Installation of C-compiler required package: Apt-get Install Build-essential

3. Pre-installation of Libpcap: Apt-get install flex,apt-get Install Bison

4. Install Libpcap.

The use of tcpdump must have this library.

Tar XVFZ libpcap-1.2.1.tar.gz/Decompression

Run into the file directory after decompression./configure//Generate Makefile File

Make//Compile

Make install//installation library files are installed by default in the directory/usr/lib, and header files are installed by default in/usr/include

3. Install Tcpdump

Tar XVFZ tcpdump.4.2.1.tar.gz/Decompression

Run into the file directory after decompression./configure//Generate Makefile File

Make//Compile

Make install//installation library files are installed by default in the directory/usr/lib, and header files are installed by default in/usr/include


Test for successful Installation: command line input tcpdump has network information displayed.


Problems that you may encounter:

1. #tcpdump

#tcpdump: no suitable device found

Reason: Network monitoring requires root permission, switch to root user can be used normally

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.