ping

Description                                                    Send an ICMP echo packet to test network connectivity.

Syntax                                                                  ping [ipv6] {hostname | ipaddr}
[data HEX-word]
[
ds-lite {[source-ipv4 ipaddr] [source-ipv6 ipaddr] [ipaddr]}]
[
flood]
[
interface {ethernet port-num | ve ve-num}]
ipv6
[
pmtu}
[
repeat {count | unlimited}]
[
size num]
[
source {ipaddr | ethernet port-num | ve ve-num}]
[
timeout secs]
[
ttl num]

Parameter

Description

ipv6 {hostname | ipaddr}

Send a ping to the specified IPv6 hostname or address.

{hostname | ipaddr}

Send a ping to the specified IPv4 hostname or address.

data HEX-word

Hexadecimal data pattern to send in the ping. The pattern can be 1-8 hexadecimal characters long.

This is not set by default.

ds-lite {
[
source-ipv4 ipaddr]
[
source-ipv6 ipaddr]
ipaddr}

Send a DS-Lite ping.

flood

Send a continuous stream of ping packets, by sending a new packet as soon as a reply to the previous packet is received.

This is disabled by default.

interface {
ethernet port-num
ve ve-num}

Use the specified interface as the source of the ping. Use ethernet for ethernet interfaces, or ve for virtual ethernet interfaces.

By default, this is not set. The ACOS device looks up the route to the ping target in the main route table and uses the interface associated with the route. (The manage­ment interface is not used unless you specify the management IP address as the source interface.)

pmtu

Enable PMTU discovery.

repeat {count | unlimited}

Number of times to send the ping. You can specify a number 1 - 10000000 (ten mil­lion), or specify unlimited to ping continuously.

The default count is 5.

size num

Specify the size of the datagram in bytes. You can specify a number from 1 - 10000.

The default size is 84 bytes.

source {
ipaddr |
ethernet port-num |
ve ve-num}

Forces the ACOS device to give the specified IP address (ipaddr), or the IP address configured on the specified interface (either ethernet port-num or
ve ve-num), as the source address of the ping.

timeout secs

Number of seconds the ACOS device waits for a reply to a sent ping packet, 1-2100 seconds.

The default timeout value is 10 seconds.

ttl num

Maximum number of hops the ping is allowed to traverse, 1-255.

The default is 1.

Default                                                                See descriptions.

Mode                                                                   EXEC, Privileged EXEC, and global configuration

Usage                                                                  The ping command sends an echo request packet to a remote address, and then awaits a reply. Unless you use the flood option, the interval between sending of each ping packet is 1 second.

To terminate a ping session, type ctrl+c.

Example                                                            The following command sends a ping to IP address 192.168.3.116:

ACOS>ping 192.168.3.116

PING 192.168.3.116 (192.168.3.116) 56(84) bytes of data

64 bytes from 192.168.3.116: icmp_seq=1 ttl=128 time=0.206 ms

64 bytes from 192.168.3.116: icmp_seq=2 ttl=128 time=0.260 ms

64 bytes from 192.168.3.116: icmp_seq=3 ttl=128 time=0.263 ms

64 bytes from 192.168.3.116: icmp_seq=4 ttl=128 time=0.264 ms

64 bytes from 192.168.3.116: icmp_seq=5 ttl=128 time=0.216 ms

--- 192.168.3.116 ping statistics ---

5 packets transmitted, 5 received, 0% packet loss, time 3996ms

rtt min/avg/max/mdev = 0.206/0.241/0.264/0.032 ms

 

Example                                                            The following command sends a ping to IP address 10.10.1.20, from ACOS Ethernet port 1. The ping has data pattern “ffff”, is 1024 bytes long, and is sent 100 times.

ACOS>ping data ffff repeat 100 size 1024 source ethernet 1 10.10.1.20

Table of Contents

Index

Glossary

-Search-

Back