Example of configuring ICMP keepalive

Last Updated : Nov 06, 2012 |

The following example configures ICMP keepalive on interface fastethernet 10/2 to send keepalive packets to IP address 135.64.2.12 using MAC address 11.22.33.44.55.66, at five second intervals. If a response is not received within one second, the keepalive packet is considered to have failed. After three consecutive failed packets, the interface is declared to be down. After two consecutive successful packets, the interface is declared to be up.

Gxxx-001# interface fastethernet 10/2
Gxxx-001(super-if:FastEthernet 10/2)# keepalive-icmp 135.64.2.12 
11.22.33.44.55.66
Gxxx-001(super-if:FastEthernet 10/2)# keepalive-icmp interval 5
Gxxx-001(super-if:FastEthernet 10/2)# keepalive-icmp timeout 1
Gxxx-001(super-if:FastEthernet 10/2)# keepalive-icmp failure-retries 3
Gxxx-001(super-if:FastEthernet 10/2)# keepalive-icmp success-retries 2
Done!