How to check ping packet loss on S5700

Created: Jun 21, 2019 09:18:48Latest reply: Jun 21, 2019 09:19:35 70 1 0 0
  Rewarded Hi-coins: 0 (problem resolved)

How to check ping packet loss on S5700

  • x
  • convention:

Featured Answers
All_About_Switch
Official Created Jun 21, 2019 09:19:35 Helpful(0) Helpful(0)

For S5700 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.
  • x
  • convention:

All Answers
All_About_Switch
All_About_Switch Official Created Jun 21, 2019 09:19:35 Helpful(0) Helpful(0)

For S5700 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.
  • x
  • convention:

Comment

Reply
You need to log in to reply to the post Login | Register

Notice Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Login and enjoy all the member benefits

Login and enjoy all the member benefits

Login