8-204 C122-E003-02EN
GSWB
CHAPTER 8 CLI Operations
(5) Examples
• Executes the ping command specifying only the IP address
• Specifies [cyclic]
• Specifies [length]
• Specifies [length]0
Switch# ping 192.168.2.2
192.168.2.2 is alive
Switch#
Switch# ping 192.168.2.2 cyclic
PING 192.168.2.2 (192.168.2.2): 56 octets data
64 octets from 192.168.2.2: icmp_seq=0 ttl=64 time=15.3 ms
64 octets from 192.168.2.2: icmp_seq=1 ttl=64 time=1.5 ms
64 octets from 192.168.2.2: icmp_seq=2 ttl=64 time=1.4 ms
^C (Press the [Ctrl]+[C] keys)
--- 192.168.2.2 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 1.5/2.8/5.6 ms
Switch#
Switch# ping 192.168.2.2 cyclic length 100
108 octets from 192.168.2.2: icmp_seq=0 ttl=64 time=3.8 ms
108 octets from 192.168.2.2: icmp_seq=1 ttl=64 time=1.6 ms
108 octets from 192.168.2.2: icmp_seq=2 ttl=64 time=1.6 ms
^C (Press the [Ctrl]+[C] keys)
--- 192.168.2.2 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 1.6/2.3/3.8 ms
Switch#
Switch# ping 192.168.2.2 cyclic length 0
8 octets from 192.168.2.2: icmp_seq=0 ttl=64
8 octets from 192.168.2.2: icmp_seq=1 ttl=64
8 octets from 192.168.2.2: icmp_seq=2 ttl=64
^C (Press the [Ctrl]+[C] keys)
--- 192.168.2.2 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 1.6/2.3/3.8 ms
Switch#