Linux packet capture analysis (tcpdump) and linux packet capture tcpdump

Source: Internet
Author: User

Linux packet capture analysis (tcpdump) and linux packet capture tcpdump
Start by default

Tcpdump

Under normal circumstances, directly starting tcpdump will monitor all the data packets flowing through the first network interface.

Monitors data packets of a specified network interface

Tcpdump-I eth1

If no Nic is specified, the default tcpdump only monitors the first network interface, which is usually eth0. In the following example, no network interface is specified.

View local network interfaces

Ifconfig

Find the network interface of your ip address

Monitors data packets of specified network interfaces and ports

Tcpdump-I eth0 tcp port 8809


Linux tcpdump packet capture Analysis

Tcpdump packet capture is triggered as long as a tcp connection exists. For packet analysis, we need to understand the tcp packets.

Packet capture with tcpdump in linux

Add the-nn parameter: Do not convert the address and port to the name
Tcpdump-I eth0-nn host 61.139.142.26-c 1000-w/root/a. cap
 

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.