How to use tcpdump to capture packets in Linux and Solaris systems

Source: Internet
Author: User
Corresponding linux platform packet capture method to grasp the entire package: # tcpdump-X-s0host192.168.1.12 grasp 68 bytes: # tcpdump-Xhost192.168.1.12 corresponding port packet capture: # tcpdump-Xudpport1812 corresponding to the Solaris platform packet capture method # snoop-x0udpto192.168.1.28 # snoop Packet capture method for linux
Capture the entire package:
# Tcpdump-X-s 0 host 192.168.1.12
Capture 68 bytes:
# Tcpdump-X host 192.168.1.12
Corresponding port packet capture:
# Tcpdump-X udp port 1812

   Packet capture method on the corresponding Solaris platform
# Snoop-x 0 udp to 192.168.1.28
# Snoop-x 0 ucp from 192.168.1.28
# Snoop-x 0-t a-d eri udp port 1645
Capture packets by time:
# Snoop-x 0-t a-d hme1 from 192.168.1.28
Capture the package with the specified address and port and save it to the current log2 file:
# Snoop-x from 192.168.1.28 tcp 80> log2.log
Packet capture can also be placed in the background for automatic operation to prevent window close:
# Csh/first enter the csh environment/
# Nohup snoop-x 0-t a-d hme1 from 192.168.1.28> snoop. log &/& indicates running in the background/

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.