15-2
default, the padded value starts from 0x01 up to 0xff, where another round starts again if necessary,
like 0x010203…feff01….
-q
: Presence of this parameter indicates that only statistics are displayed. By default, all information is
displayed.
-r
: Records routes. By default, routes are not recorded.
-s packet-size
: Specifies length (in bytes) of an ICMP echo request, in the range 20 to 8100. The
default value is 56.
-t timeout
: Specifies the timeout value (in milliseconds) of an ICMP echo reply (ECHO-REPLY), in the
range 0 to 65535. It defaults to 2000.
-tos
tos
: Specifies type of service (ToS) of an echo request, in the range 0 to 255. The default value is
0.
-v
: Displays non ICMP echo reply received. By default, the system does not display non ICMP echo
reply.
-vpn-instance vpn-instance-name
: Specifies the name of an MPLS VPN instance, which
is a string of
1 to 31 characters. It is case sensitive.
remote-system
: IP address or host name (a string of 1 to 20 characters) of the destination device.
Description
Use the
ping
command to verify whether the destination device in an IP network is reachable, and to
display the related statistics.
Note that:
z
You must use the command in the form of
ping ip ip
instead of
ping ip
if the destination name is a
key word, such as
ip
.
z
Only the directly connected segment address can be pinged if the outgoing interface is specified
with the
-i
argument.
During the execution of the command, you can press
Ctrl+C
to abort the ping operation.
Examples
#
Check whether the device with an IP address of 10.1.1.5 is reachable.
<Sysname> ping 10.1.1.5
PING 10.1.1.5 : 56 data bytes, press CTRL_C to break
Reply from 10.1.1.5 : bytes=56 Sequence=1 ttl=255 time=1 ms
Reply from 10.1.1.5 : bytes=56 Sequence=2 ttl=255 time=2 ms
Reply from 10.1.1.5 : bytes=56 Sequence=3 ttl=255 time=1 ms
Reply from 10.1.1.5 : bytes=56 Sequence=4 ttl=255 time=3 ms
Reply from 10.1.1.5 : bytes=56 Sequence=5 ttl=255 time=2 ms
--- 10.1.1.5 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/2/3 ms
The above information indicates the following:
z
The destination host was reachable
Содержание E4510-48G
Страница 109: ...2 18 Sysname interface bridge aggregation 1 Sysname Bridge Aggregation1 shutdown ...
Страница 309: ...6 4 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address dhcp alloc ...
Страница 324: ...8 3 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address bootp alloc ...
Страница 530: ...2 5 Sysname mvlan 100 subvlan 10 to 15 ...
Страница 739: ...8 15 Sysname system view Sysname port security trap addresslearned ...
Страница 819: ...13 11 Sysname system view Sysname public key peer key2 import sshkey key pub ...
Страница 857: ...iii 7 Track Configuration Commands 7 1 Track Configuration Commands 7 1 display track 7 1 track nqa 7 2 ...
Страница 914: ...5 17 Sysname reset oam ...
Страница 1064: ...5 30 Slot 2 Set next configuration file successfully ...
Страница 1325: ...21 13 Examples Redirect to member 2 Sysname irf switch to 2 Sysname Slave 2 ...