[Keyword]
repeat
:
Specifies the number of times to execute
size
:
Specifies the length of the ICMP payload (byte units)
timeout
:
Specifies the time to wait for a reply after transmitting the specified number of Echo requests
[Parameter]
host
:
Target to which ICMP Echo is sent
Host name, or target IP address (A.B.C.D)
count
:
Number of times to execute (if omitted: 5)
Setting value
Description
<1-2147483647>
Execute the specified number of times
continuous
Execute repeatedly until Ctrl+C is entered
datalen
:
<36-18024>
Length of the ICMP payload (if omitted: 56)
timeout
:
<1-65535>
Time to wait for a reply (if omitted: 2)
This is ignored if the number of times to execute is specified as "continuous"
[Input mode]
priviledged EXEC mode
[Description]
Send ICMP Echo to the specified host, and wait for ICMP Echo Reply.
If there is a reply, show it. Show statistical information when the command ends.
[Example]
Ping the IP address 192.168.100.254 three times with a data size of 120 bytes.
SWR2311P#ping 192.168.100.254 repeat 3 size 120
PING 192.168.100.254 (192.168.100.254): 120 data bytes
128 bytes from 192.168.100.254: seq=0 ttl=255 time=8.368 ms
128 bytes from 192.168.100.254: seq=1 ttl=255 time=9.946 ms
128 bytes from 192.168.100.254: seq=2 ttl=255 time=10.069 ms
--- 192.168.100.254 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 8.368/9.461/10.069 ms
7.4.2 Check IPv4 route
[Syntax]
traceroute
host
[Parameter]
host
:
Destination for which to check the route
Host name, or target IP address (A.B.C.D)
[Input mode]
priviledged EXEC mode
[Description]
Shows information for the route to the specified host.
[Example]
Check the route to 192.168.100.1.
SWR2311P#traceroute 192.168.100.1
traceroute to 192.168.100.1 (192.168.100.1), 30 hops max
198
| Command Reference | Layer 3 functions