Using ping, tracert, and system debugging, Ping, Using a ping command to test network connectivity – H3C Technologies H3C MSR 50 User Manual

Page 219: Ping example, Network requirements

Advertising
background image

Using ping, tracert, and system debugging

Use the ping, tracert, and system debugging utilities to test network connectivity and identify network

problems.

Ping

The ping utility sends ICMP echo requests (ECHO-REQUEST) to the destination device. Upon receiving

the requests, the destination device responds with ICMP echo replies (ECHO-REPLY) to the source device.

The source device outputs statistics about the ping operation, including the number of packets sent,

number of echo replies received, and the round-trip time. You can measure the network performance by
analyzing these statistics.

Using a ping command to test network connectivity

Execute ping commands in any view.

Task Command

Remarks

Set a larger value for the timeout timer
(indicated by the -t parameter in the

command) when you configure the
ping command for a low-speed

network.

For an IPv4 network:

ping [ ip ] [ -a source-ip | -c count | -f |

-h ttl | -i interface-type interface-number
| -m interval | -n | -p pad | -q | -r | -s

packet-size | -t timeout | -tos tos | -v |

-vpn-instance vpn-instance-name ] * host

Test the network
connectivity to an IP

address.

Only the directly connected segment

address can be pinged if the outgoing
interface is specified with the -i

keyword.

For an IPv6 network:

ping ipv6 [ -a source-ipv6 | -c count | -m

interval | -s packet-size | -t timeout |
-vpn-instance vpn-instance-name ] * host

[ -i interface-type interface-number ]

Disabling the echo reply function on

the firewall installed on the destination
affects the ping function.

For more information about the ping ipx command, see IPX Command Reference.
For more information about the ping lsp command, see MPLS Command Reference.

Ping example

Network requirements

Test the network connectivity between Device A and Device C in

Figure 62

. If they can reach each other,

get detailed information about routes from Device A to Device C.

206

Advertising