icmp-echo
To configure an IP Service Level Agreements (SLAs) Internet Control Message Protocol (ICMP) echo operation, use the icmp-echo command in IP SLA configuration mode.
icmp-echo {destination-ip-address | destination-hostname} [source-ip {ip-address | hostname} | source-interface interface-name]
Syntax Description
destination-ip-address | destination-hostname |
Destination IPv4 or IPv6 address or hostname. |
source-ip {ip-address | hostname } |
(Optional) Specifies the source IP v4 or IPv6 address or hostname . When a source IP address or hostname is not specified, IP SLAs chooses the IP address nearest to the destination. |
source-interface interface-name |
(Optional) Specifies the source interface for the operation. |
Command Default
No IP SLAs operation type is configured for the operation being configured.
Command Modes
IP SLA configuration (config-ip-sla)
Command History
Release |
Modification |
---|---|
12.4(4)T |
This command was introduced. This command replaces the type echo protocol ipIcmpEcho command. |
12.0(32)SY |
This command was integrated into Cisco IOS Release 12.0(32)SY. |
12.2(33)SRB |
This command was integrated into Cisco IOS Release 12.2(33)SRB. This command replaces the type echo protocol ipIcmpEcho command. |
12.2(33)SRC |
Support for IPv6 addresses was added. |
12.2(33)SB |
This command was integrated into Cisco IOS Release 12.2(33)SB. This command replaces the type echo protocol ipIcmpEcho command. Support for IPv6 addresses was added. |
12.4(20)T |
Support for IPv6 addresses was added. |
12.2(33)SXI |
This command was integrated into Cisco IOS Release 12.2(33)SXI. This command replaces the type echo protocol ipIcmpEcho command. The keyword source-interface is not supported. |
Usage Guidelines
The default request packet data size for an ICMP echo operation is 28 bytes. Use the request-data-size command to modify this value. This data size is the payload portion of the ICMP packet, which makes a 64-byte IP packet.
You must configure the type of IP SLAs operation (such as User Datagram Protocol [UDP] jitter or ICMP echo) before you can configure any of the other parameters of the operation. To change the operation type of an existing IP SLAs operation, you must first delete the IP SLAs operation (using the no ip sla global configuration command) and then reconfigure the operation with the new operation type.
IP SLAs ICMP echo operations support both IPv4 and IPv6 addresses.
Examples
In the following example, IP SLAs operation 10 is created and configured as an echo operation using the ICMP protocol and the destination IPv4 address 172.16.1.175:
ip sla 10
icmp-echo 172.16.1.175
!
ip sla schedule 10 start-time now
In the following example, IP SLAs operation 11 is created and configured as an echo operation using the ICMP protocol and the destination IPv6 address 2001:DB8:100::1:
ip sla 11
icmp-echo 2001:DB8:100::1
!
ip sla schedule 11 start-time now