5.1 Diagnostics Ping (IPv4)

Use this command to issue ICMP (IPv4) Ping (Packet Inter-Network Groper) packets to troubleshoot IP connectivity issues.

Command Syntax:

ping [ ip ] { <domain_name> | <ip_addr> } [ ttl <ttl_value> ] [ repeat <count> ] [ { saddr <src_addr> | sif { <port_type> <src_if> | vlan <vlan_id> } } ] [ size <size> ] [ data <data_value> ] [ { verbose | quiet } ]
Table 5-1. Command Description

Argument

Description

Parameter

<domain_name>

Destination hostname or FQDN

<ip_addr>

Destination IPv4 address

<ttl_value>

IPv4 TTL: 1–255; Default value is 64

<count>

Packets: 1–60; Default value is 5

<src_addr>

Source Address of interface

<port_type>

Port type in GigabitEthernet, 2.5GigabitEthernet

<src_if>

Port ID in the format of switch-no/port-no

<vlan_id>

Source VLAN interface

<size>

Size (bytes): 2–1452; Default value is 56

<data_value>

Payload data: 0–255; Default value is 0

Default

N.A

Mode

User EXEC mode

Usage

Send ICMP echo messages

Example

Example 1:

Send ten pings to 192.168.0.2

# ping ip 192.168.0.2 count 10