How to check ping packet loss on S series switches

For S series switches (except the S1700), you can run the ping command to check ping packet loss directly. For example:
[HUAWEI] ping -c 100 192.168.2.21
PING 192.168.2.21: 56 data bytes, press CTRL_C to break
Reply from 192.168.2.21: bytes=56 Sequence=1 ttl=124 time=1 ms
...
--- 192.168.2.21 ping statistics ---
100 packet(s) transmitted //Total number of sent packets
91 packet(s) received //Total number of received packets
9.00% packet loss //Packet loss ratio
round-trip min/avg/max = 1/1/19 ms

You can also perform the following steps to configure traffic statistics collection to check ping packet loss:

Configure traffic statistics collection for packets received by a switch.
1. Configure an ACL rule.
[HUAWEI] acl number 3000
[HUAWEI-acl-adv-3000] rule permit icmp source 192.168.2.21 0 destination 192.168.2.20 0
[HUAWEI-acl-adv-3000] quit

2. Configure a traffic classifier.
[HUAWEI] traffic classifier 3000
[HUAWEI-classifier-3000] if-match acl 3000
[HUAWEI-classifier-3000] quit3. Configure a traffic behavior.
[HUAWEI] traffic behavior 3000
[HUAWEI-behavior-3000] statistic enable
[HUAWEI-behavior-3000] quit

4. Configure a traffic policy.
[HUAWEI] traffic policy 3000
[HUAWEI-trafficpolicy-3000] classifier 3000 behavior 3000
[HUAWEI-trafficpolicy-3000] quit

5. Apply the traffic policy to an interface.
[HUAWEI] interface gigabitethernet 0/0/2
[HUAWEI-GigabitEthernet0/0/2] traffic-policy 3000 inbound
[HUAWEI-GigabitEthernet0/0/2] quit

6. Check traffic statistics of packets received by the switch.
[HUAWEI] display traffic policy statistics interface gigabitethernet 0/0/2 inbound verbose rule-base //The output is omitted.

For more information about ping packet loss, see "Ping Failure Troubleshooting" or "S Series Switches packet Loss Troubleshooting" in "Maintenance Topics" in the Huawei S Series Campus Switches Maintenance Guide.

Other related questions:
The reason of S series switch Ping packet loss
Reason for ping packet loss on S series switch
If you have more questions, you can seek help from following ways:
To iKnow To Live Chat To Google
Scroll to top