Hà Nội: NTT03, Line 1, Thống Nhất Complex, 82 Nguyễn Tuân, Thanh Xuân, Hà Nội. ● HCM: Số 31B, Đường 1, Phường An Phú, Quận 2 (Thủ Đức), TP HCM. ===> Đơn Vị Hàng Đầu Trong Lĩnh Vực Cung Cấp Thiết Bị Security - Network - Wifi - CCTV - Conference - Máy chủ Server - Lưu trữ Storge.
Danh mục sản phẩm

Ping Function

The ping function is used to check the network connection status and whether the host is reachable. The ping function sends the ICMP echo request packet to the host and waits for the ICMP echo response, used to judge whether the destination is reachable. Ping can test the turnaround time from the source to the destination.

Configuration Condition

None

Ping

Table 1-2 ping

Step

Command

Description

Check whether the specified destination address is reachable

ping [ vrf vrf-name ] {[ip host-name | ip-address] | [ ipv6 host-name | ipv6-address] | host-name | ip-address | ipv6-address } [ -l packet-length ] [ -w wait-time ] [ -n packet-number | -t ]

Mandatory

Interactive ping

If you need to use loose source route, strict source route, record route, record timestamp and other options, or you need to know the maximum ICMP packet size supported by the peer device, you can use the interactive ping to achieve.

Table 1-3 Interactive ping

Step

Command

Description

Enter the ping interactive mode

ping [ vrf vrf-name ]

Mandatory

In the privileged user mode, execute the command to enter the ping interactive mode.

Configure the network protocol type

Protocol [ ip ]:[ ip | ipv6]

Optional

By default, Use the IPv4 protocol.

Configure the destination IP address or host name

Target IP address or hostname:{ ip-address | host- name }

Mandatory

Configure the times of sending the ICMP request packet

Repeat count [5]:[ repeat-count ]

Optional

By default, send for 5 times.

Configure the length of the ICMP request packet

Datagram size [76]:[ datagram- size ]

Optional

The packet length is the size of the whole IP packet.

By default, the packet length is 76 bytes.

Configure the timeout for waiting for the ICMP response

Timeout in seconds [2]:[ timeout ]

Optional

By default, time out for 2s.

Enable the extended option

Extended commands [no]:[ yes |

no ]

Optional

After enabling the extended option, the configuration command of the extended option is available.

By default, do not enable the extended option.

Configure the extended option, the source IP address or egress interface of the ICMP request packet

Source address or interface:{ ip- address | interfacename }

Optional

After enabling the extended option, the command can be configured.

By default, do not specify the source address and egress interface of the request packet.

Configure the extended selection, the service type of the ICMP request packet

Type of service [0]:[ tos ]

Optional. Only IPv4 protocol supports the command.

After enabling the extended option, the command can be configured.

By default, the TOS value is 0.

Configure the extended option, setting not permitting the fragment

Set DF bit in IP header? [ no ]:[ yes | no ]

Optional. Only IPv4 protocol supports the command.

After enabling the extended option, the command can be configured.

By default, do not set the DF flag, permitting fragment.

Configure the extended option, validating the data content of the response packet

Validate reply data? [ no ]:[ yesno ]

Optional. Only IPv4 protocol supports the command.

After enabling the extended option, the command can be configured.

By default, do not validate the data content.

Configure the extended option, the data content of the ICMP request packet

Data pattern [abcd]:[ data-pattern ]

Optional

After enabling the extended option, the command can be configured.

By default, the data content profile is “abcd”.

Configure the extended option, loose source route option, strict source route option, record route, record timestamp, display details

Loose, Strict, Record, Timestamp, Verbose [ none ]:[ l | s ] [ r / t / v ]

Optional, only IPv4 protocol supports the command.

After enabling the extended option, the command can be configured.

By default, do not configure the extended option.

Enable scanning the sent ICMP request packet

Sweep range of sizes [ no ]:[ yes |

no ]

Optional, only IPv4 protocol supports the command.

By default, scanning the sent packet is disabled.

Configure the start value of the scanning

Sweep min size [36]:[ min-szie ]

Optional, only IPv4 protocol supports the command.

After enabling scanning the sent packet, the command can be configured.

By default, the start value of the scanning is 36.

Configure the end value of the scanning

Sweep max size [18024]:[ max- size ]

Optional, only IPv4 protocol supports the command.

After enabling scanning the sent packet, the command can be configured.

By default, the end value of the scanning is 18024

Configure the scanning incremental value

Sweep interval [1]:[ interval ]

Optional, only IPv4 protocol supports the command.

After enabling scanning the sent packet, the command can be configured.

By default, the scanning incremental value is 1.

Groupping

The device supports sending multiple ICMP echo requests at one time, and gets more accurate network connection status according to the number of ICMP reply packets returned by the destination host.

Table 1-4 groupping

Step

Command

Description

Send multiple groups of ICMP request packets, checking whether the destination address is reachable

groupping [ vrf vrf-name ] { hostname | ip-address } [ [ -l packet- length ] [ -g packet-group ] [ -w wait- time ] [ -n packet-number ] [ -t ]

Mandatory

note


  • When pinging the destination host name, first configure the DNS function. Otherwise, ping fails. For DNS configuration, refer to “DNS Configuration” in “IP Network Protocol Configuration”.