No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Configuration Guide - Network Management and Monitoring

S1720, S2700, S5700, and S6720 V200R011C10

This document provides the configurations of network management and monitoring features supported by the product, including SNMP, RMON and RMON2, LLDP, Performance Management, iPCA, NQA, Service Diagnosis, Mirroring, Packet Capture, NetStream, sFlow, TWAMP Light, and NETCONF.

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Example for Configuring Packet Capture

Example for Configuring Packet Capture

Networking Requirements

In Figure 10-1, a switch connects to the Internet through GE0/0/1.

The user wants to capture the packets received by GE0/0/1 and the packets to be sent to the CPU, and display the captured packets on an operation terminal.

Figure 10-1  Networking diagram for configuring packet capture

Configuration Roadmap

The configuration roadmap is as follows:
  1. Capture the service packets received by GE0/0/1, and display captured packets on an operation terminal.
  2. Capture the packets sent to the CPU and display captured packets on an operation terminal.

Procedure

  1. Capture the service packets received by GE0/0/1, and display captured packets on an operation terminal.

    <HUAWEI> system-view
    [HUAWEI] sysname Switch
    [Switch] capture-packet interface gigabitethernet 0/0/1 destination terminal packet-num 3 packet-len 64
    [Switch]
      Packet: 1
      -------------------------------------------------------
      01 00 5e 00 00 fc 00 1b 21 c4 82 0f 81 00 0f ff
      08 00 45 00 00 32 65 cb 00 00 01 11 80 48 c0 a8
      32 03 e0 00 00 fc ce 94 14 eb 00 1e 4b 3f 24 6f
      00 00 00 01 00 00 00 00 00 00 04 77 70 61 64 00
      00 01 00 01
      -------------------------------------------------------
    
      Packet: 2
      -------------------------------------------------------
      33 33 00 01 00 03 00 1b 21 c4 82 0f 81 00 0f ff
      86 dd 60 00 00 00 00 1e 11 01 fe 80 00 00 00 00
      00 00 d5 b2 02 74 37 0b 4c 6e ff 02 00 00 00 00
      00 00 00 00 00 00 00 01 00 03 e3 11 14 eb 00 1e
      d2 74 03 3d 00 00 00 01 00 00 00 00 00 00 04 77
      70 61 64 00 00 01 00 01
      -------------------------------------------------------
    
      Packet: 3
      -------------------------------------------------------
      01 00 5e 00 00 fc 00 1b 21 c4 82 0f 81 00 0f ff
      08 00 45 00 00 32 62 2e 00 00 01 11 83 e5 c0 a8
      32 03 e0 00 00 fc d4 df 14 eb 00 1e dc 49 8d 19
      00 00 00 01 00 00 00 00 00 00 04 77 70 61 64 00
      00 01 00 01
      -------------------------------------------------------
    
      ------------------packet getting report-----------------------
      file: NULL
      packets getting: interface GigabitEthernet0/0/1
      acl: -
      vlan: -  cvlan: -
      car: 64kbps timeout: 60s
      packets: 3 (expected) 3 (actual)
      length: 64 (expected)
      -------------------------------------------------------                                                                                   

  2. Capture the packets sent to the CPU and display captured packets on an operation terminal.

    [Switch] capture-packet cpu destination terminal packet-num 3 packet-len 64
    [Switch]
      Packet: 1
      -------------------------------------------------------
      01 80 c2 00 00 0e 02 00 00 00 00 00 81 00 00 0c
      88 cc 02 07 04 02 00 00 00 00 00 04 16 05 47 69
      67 61 62 69 74 45 74 68 65 72 6e 65 74 30 2f 30
      2f 31 30 06 02 00 78 08 15 47 69 67 61 62 69 74
      45 74 68 65 72 6e 65 74 30 2f 30 2f 31 30 0a 09
      31 30 38 2d 53 31 37 32 30 0c a1 53 31 37 32 30
      2d 32 30 47 46 52 2d 34 54 50 2d 41 43 0d 0a 48
      75 61 77 65 69 20 56 65 72 73 61 74 69 6c 65 20
      -------------------------------------------------------
    
      Packet: 2
      -------------------------------------------------------
      01 80 c2 00 00 0e 02 35 20 36 ad cc 81 00 0f ff
      88 cc 02 07 04 02 35 20 36 ad cc 04 0f 05 45 74
      68 65 72 6e 65 74 30 2f 30 2f 31 30 06 02 00 78
      08 0e 45 74 68 65 72 6e 65 74 30 2f 30 2f 31 30
      0a 0b 31 30 37 2d 53 32 33 35 30 45 49 0c a3 53
      32 33 35 30 2d 32 30 54 50 2d 50 57 52 2d 45 49
      2d 41 43 0d 0a 48 75 61 77 65 69 20 56 65 72 73
      61 74 69 6c 65 20 52 6f 75 74 69 6e 67 20 50 6c
      -------------------------------------------------------
    
      Packet: 3
      -------------------------------------------------------
      01 80 c2 00 00 0a 00 e0 fc 09 bc f9 81 00 00 01
      88 a7 00 03 00 00 01 b4 fb 8e 00 01 00 0e 00 00
      00 00 02 00 00 00 00 00 00 07 00 19 31 30 39 2d
      53 31 37 32 30 20 56 32 30 30 52 30 30 36 43 31
      30 00 0f 00 15 53 31 37 32 30 20 56 32 30 30 52
      30 30 36 43 31 30 00 12 00 1d 56 65 72 73 69 6f
      6e 20 35 2e 31 36 30 20 56 32 30 30 52 30 30 36
      43 31 30 00 11 00 1d 56 65 72 73 69 6f 6e 20 35
      -------------------------------------------------------
    
      ------------------packet getting report-----------------------
      file: NULL
      packets getting: cpu
      acl: -
      vlan: -  cvlan: -
      car: -- timeout: 60s
      packets: 3 (expected) 3 (actual)
      length: 64 (expected)
      -------------------------------------------------------

Configuration Files

None

Translation
Download
Updated: 2020-02-06

Document ID: EDOC1000178174

Views: 206878

Downloads: 824

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next