Android tcpdump Use

Source: Internet
Author: User

/************************************************************************** * Android tcpdump Use * Description: * Debugging network card problems, Flynn reminds me on the motherboard using TCPDMP grab bag, pc with Wireshark grab bag, * results found downstream data is possible, upstream data has a problem. * 2017-4-12 Shenzhen Longhua gen Zengjianfeng ************************************************************ *************/First, reference documents:1. Android Common Grab Kit tcpdump http://blog.tingyun.com/web/article/detail/480    2. Android uses tcpdump to grab the packet http://codingnow.cn/android/1633.htmlsecond, the operation method:1. Android tcpdump shell command: tcpdump-vv-i eth0 host10.10.10.10&2. PC cmd command: Ping10.10.10.10C:\USERS\ZENGJF>ping10.10.10.10is pinging10.10.10.10Has +bytes of data: from10.10.10.15reply: Unable to access the target host.        The request timed out.        The request timed out.        The request timed out. 10.10.10.10Ping Statistics: packets: Sent=4, received =1, missing =3( the%lost),3. Operation output: [Email PROTECTED]_6DQ:/# Ifconfig Eth010.10.10.10Netmask255.255.255.0[email PROTECTED]_6DQ:/# busybox ifconfig eth0 Link encap:ethernet HWaddr 7c:cb:e2:e 0: -: -inet Addr:10.10.10.10Bcast:10.10.10.255Mask:255.255.255.0Inet6 addr:fe80::7ecb:e2ff:fee0:2807/ -scope:link up broadcast RUNNING multicast MTU: theMetric:1RX Packets:245Errors0Dropped0Overruns:0Frame0TX Packets: *Errors0Dropped0Overruns:0Carrier0Collisions:0Txqueuelen: +RX Bytes:23604(23.0KiB) TX Bytes:7482(7.3KiB) Lo Link encap:local Loopback inet addr:127.0.0.1Mask:255.0.0.0Inet6 Addr: ::1/ -scope:host up LOOPBACK RUNNING MTU:65536Metric:1RX Packets: -Errors0Dropped0Overruns:0Frame0TX Packets: -Errors0Dropped0Overruns:0Carrier0Collisions:0Txqueuelen:0RX Bytes:1344(1.3KiB) TX Bytes:1344(1.3KiB) [Email PROTECTED]_6DQ:/# tcpdump-vv-i Eth0 Host10.10.10.10&                            [1]1145[email PROTECTED]_6DQ:/# device Eth0 entered promiscuous mode tcpdump:listening on eth0, link-type EN10MB (Ethernet), capture size65535bytesxx: to:32.544047ARP, Ethernet (len6), IPv4 (len4), Request Who-has10.10.10.10Tell10.10.10.15, length $        xx: to:32.544131ARP, Ethernet (len6), IPv4 (len4), Reply10.10.10.10  is-at 7C:CB:E2:E0: -: -(Oui Unknown), length -        xx: to:33.365689ARP, Ethernet (len6), IPv4 (len4), Request Who-has10.10.10.10Tell10.10.10.15, length $        xx: to:33.365747ARP, Ethernet (len6), IPv4 (len4), Reply10.10.10.10  is-at 7C:CB:E2:E0: -: -(Oui Unknown), length -        xx: to:34.365755ARP, Ethernet (len6), IPv4 (len4), Request Who-has10.10.10.10Tell10.10.10.15, length $        xx: to:34.365836ARP, Ethernet (len6), IPv4 (len4), Reply10.10.10.10  is-at 7C:CB:E2:E0: -: -(Oui Unknown), length -        xx: .:35.364318ARP, Ethernet (len6), IPv4 (len4), Request Who-has10.10.10.10Tell10.10.10.15, length $        xx: .:35.364401ARP, Ethernet (len6), IPv4 (len4), Reply10.10.10.10  is-at 7C:CB:E2:E0: -: -(Oui Unknown), length -        

Android tcpdump Use

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.