Got it

Is it possible to set a continuous ping running on a CE switch?

Latest reply: Jun 25, 2018 13:11:47 9559 7 0 0 0

Hello, everyone!

This post enquires about setting a continuous ping running on a CE switch. Please see more details as you read further down this post.

Huawei CE Switches


Is it possible to set a continuous ping running on a CE switch?

I don't see an option below..

<SWITCH-1> ping ?
  -a             Select a source IP address
  -c             Specify the number of echo requests to be sent. The default is
  -d             Specify the SO_DEBUG option on the socket being used
  -f             Set the Don't Fragment flag in packet (IPv4-only)
  -h             Specify TTL value for echo requests to be sent. The default is
  -i             Select the interface sending packets
  -m             Time in milliseconds to wait for sending next packet. The
                 default is 500 ms
  -p             No more than 8 "pad" hexadecimal characters to fill out the
                 sent packet. For example, -p f2 will fill the sent packet with
                 f and 2 repeatedly
  -q             Quiet output. Nothing is displayed except the summary lines at
                 startup time and when finished
  -r             Record route. Includes the RECORD_ROUTE option in the
                 ECHO_REQUEST packet and displays the route
  -s             Specify the number of data bytes to be sent. The default is 56
  -system-time   Display the sending time of echo request packets
  -t             Timeout in milliseconds to wait for each reply. The default is
                 2000 ms
  -tos           Specify TOS value for echo requests to be sent
  -v             Verbose output. ICMP packets other than ECHO_RESPONSE those are
                 received are listed
  -vpn-instance  Specify VPN-Instance of MPLS VPN
  STRING<1-255>  IP address or hostname of a remote system
  arp            ARP-ping
  ip             IP Protocol
  ipv6           IPv6 Protocol
  lsp            LSP Ping
  mac            MAC ping
  trill          Trill ping
  vpls           VPLS Ping

Thanks in advance for explaining whether it is possible to set a continuous ping running on a CE switch.


  • x
  • convention:

Created Apr 25, 2018 11:35:53


Yes, it is possible with the command <> ping ip -t
View more
  • x
  • convention:

HCIE Created Apr 25, 2018 14:31:30

Sir, is it only available on CE switches or we can do it on all platforms as I tried on some access switches but command have different option instead than continuous ping?

View more
  • x
  • convention:

Created Apr 26, 2018 01:19:16

I think the -t is not continuous ping, the CE can't continuous ping, but you can use -c count:
ping -c count x.x.x.x    //The value is an integer that ranges from 1 to 4294967295. The default value is 5.
-c count
Specifies the number of times for sending ICMP Echo Request messages.
The ping command labels each ICMP Echo Request message with a sequence ID that starts from 1 and is increased by 1. By default, five ICMP Echo Request messages are sent. You can set the number of ICMP Echo Request messages to send by specifying the parameter count.
In the case of poor network quality, you can set this parameter to a comparatively large value to check the network quality based on the packet loss rate.
View more
  • x
  • convention:

Created Apr 26, 2018 07:51:06

I have tried the ping ip -t on a CE12800 & it is the timeout value

ping ip -t ?
INTEGER<0-65535> Timeout in milliseconds to wait for each reply

I have used the -c count, but just wondered if there is an option for a continuous ping.
Looks like there is not :(
View more
  • x
  • convention:

Created May 4, 2018 15:23:48

ip -t
View more
  • x
  • convention:

Created May 11, 2018 06:49:13

Thank you for sharing.
View more
  • x
  • convention:

Created Jun 25, 2018 13:11:47

Can anybody know how to do constant ping from -vpn-instance?
View more
  • x
  • convention:


You need to log in to comment to the post Login | Register

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 " User Agreement."

My Followers

Login and enjoy all the member benefits


Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Please bind your phone number to obtain invitation bonus.