Cisco Cisco SG300-28 28-Port Gigabit Managed Switch Technical References

Page of 1117
24
OL-32830-01 Command Line Interface Reference Guide
474
 
IP System Management Commands
24.0
24.1
ping
Use the ping EXEC mode command to send ICMP echo request packets to 
another node on the network.
Syntax
ping [ip] {i
pv4-address | hostname
}
 
[
size packet_size
] [
count packet_count
[
timeout time_out
] [source 
source-address
]
ping ipv6 {
ipv6-address | hostname
} [
size packet_size
] [
count packet_count
[
timeout time_out
] [source 
source-address
]
Parameters
ip—Use IPv4 to check the network connectivity.
ipv6—Use IPv6 to check the network connectivity.
ipv4-address—IPv4 address to ping.
ipv6-address—Unicast or Multicast IPv6 address to ping. When the IPv6 
address is a Link Local address (IPv6Z address), the outgoing interface 
name must be specified.
hostname—Hostname to ping (Length: 1-160 characters. Maximum label 
size for each part of the host name: 58.)
size 
packet_size
—Number of bytes in the packet not including the VLAN 
tag. The default is 64 bytes.  (IPv4:64–1518, IPv6: 68–1518)
count 
packet_count
—Number of packets to send, from 1 to 65535 packets. 
The default is 4 packets. If 0 is entered, it pings until stopped (0–65535).
time 
time-out
—Timeout in milliseconds to wait for each reply, from 50 to 
65535 milliseconds. The default is 2000 milliseconds (50–65535).
source 
source-address
—Source address (Unicast IPv4 address or global 
Unicast IPv6 address).