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


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


CLI-based Configuration Guide - Network Management and Monitoring

AR100, AR120, AR150, AR160, AR200, AR1200, AR2200, AR3200, and AR3600 V200R009

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).
Configuring the Device to Capture Packets

Configuring the Device to Capture Packets


If the device fails to forward traffic correctly, configure the packet capture function to capture service packets for analysis. This allows the device to process invalid packets in time, ensuring that network data can be transmitted correctly.

During network maintenance, if unexpected traffic (such as lowered voice quality and video mosaic) occurs, there may be error packets or discarded packets. You need to configure a filtering policy to capture the packets of specified types. Then the device can process invalid packets in a timely manner and data services can be correctly transmitted.

The device can be configured to capture all service packets or only voice packets. To accurately obtain voice packet information, configure the device to capture only voice packets.


  1. Run system-view

    The system view is displayed.

  2. Packet capturing can be configured in two methods. The two methods cannot be configured at the same time. Therefore, select one method according to your needs.

    • Run the capture-packet { interface interface-type interface-number | dsp } [ acl acl-number ] destination { terminal | file file-name } * [ car cir car-value | time-out time | packet-num number | packet-len { length | total-packet } ] * command to configure the device to capture packets.

    • Run the voice-monitor interface interface-type interface-number destination file file-name* telno telephone-number &<1-8> [ car cir cir-value | time-out time | packet-num number | packet-len { length | total-packet } ] * command to configure the device to capture voice packets and save them.

    • The packet capture configuration is not saved in the configuration file, and becomes invalid when packet capture is complete.
    • The capture-packet command can capture incoming and outgoing packets.
    • Before using the capture-packet or voice-monitor command again, wait until the last command execution is complete.
    • The system limits the rate of captured packets. If the rate of packets exceeds the limit, some packets may be discarded.
    • You can set the timeout interval of packet capture and number of packets to be captured. The system stops capturing packets after the timeout interval or the number of packets to be captured is reached.

    • When configuring packet capture, you can set parameters according to the number of packets on an interface. If there are many packets on the interface, set a small value of time and a large value of number. If there are less packets on an interface, set a large value of time and a small value of number.

Verifying the Configuration

  • Run the display voice-monitor command to display information about voice packets passing the device.
Updated: 2019-05-17

Document ID: EDOC1000174072

Views: 108573

Downloads: 346

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Previous Next