IPSLA - jibingl/CCNA-CCNP GitHub Wiki

IP Service Level Agreement

Configuration

To setup an IP SLA, define an operation number and an operation type (applications), and configure a schedule (start and stop) to activate.

! Define an IPSLA with operation # 1 and type of ICMP Echo
ip sla 1
 icmp-echo 1.1.1.1 source-interface Gig1

! Activate by configuring start time and lifetime
ip sla schedule 1 life forever start-time now

show ip sla sumarry

show ip sla configuration 1


Practical Use of IPSLA

Tracking an IPSLA (ping 1.1.1.1) state to log internet connectivity via syslog.

! Define a track of the IP SLA of ping 1.1.1.1
track 1 ip sla 1 reachability

! Configure an EEM applet to log internet connectivity via monitoring the track 1 state
event manager applet Monitor_Internet_Down
 event track 1 state down
 action 1 syslog priority critical msg "Critical: Tracking of internet access is down. Loss of internet connectivity."
event manager applet Monitor_Internet_Up
 event track 1 state up
 action 1 syslog priority notifications msg "Notification: Tracking of internet access is UP. Recovery of internet connectivity."

show track

show event manager registered

A syslog displayed on console