Common parameters of the tcpdump command

Source: Internet
Author: User
E. monitor the local udp123 Port 123 as the ntp service port # The tcpdumpudpport123F system only monitors the communication packets of the host named hostname. The host name can be a local host or any computer on the network. The following command reads all data sent by the host hostname: # tcpdump-ie

E. monitor the udp port 123 of the local machine. Port 123 is the ntp service port.

#TcpdumpUdp port 123

The F system only monitors the communication data packets of the host named hostname. The host name can be a local host or any computer on the network. The following command reads all data sent by the host hostname:

# Tcpdump-I eth0 src host hostname

If we only need to list the data packets sent to port 80, use dst port; if we only want to see the data packets returned to port 80, use srcport.
# Tcpdump? I eth0 host hostname and dst port80 destination port is 80
Or

-Vv: output detailed message information;

-Nn: Display IP address instead of host name

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.