cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
9494
Views
17
Helpful
4
Replies

IP SLA Questions

Joe Lee
Level 1
Level 1

All- I configured the IP SLA monitor for tracking the remote site' up/down status. 1) I want to stop the IP SLA monitor operating after detecting the site up for aobut 10 minutes or maybe 10 pings. 2) This IP SLA monitor should continue functioning for tracking the remote site' up/down status. Please advise.

Regards,

Joe

2 Accepted Solutions

Accepted Solutions

Well for tracking a static route for failover, you can refer to the following sample config:

 

ip sla 12

icmp-echo 4.2.2.2 source-interface FastEthernet4

timeout 1000

frequency 120




ip sla schedule 12 life forever start-time now     --> you can tweak this command to specify when IP SLA should start and for how long




track 2 rtr 12 reachability




ip route 0.0.0.0 0.0.0.0 192.168.0.26 track 2


 

Detailed document for Route tracking using IP SLA:

http://www.cisco.com/en/US/docs/ios/12_3/12_3x/12_3xe/feature/guide/dbackupx.html

View solution in original post

Hi Joe,

 

Hope the below explaination will help you...

 

R1(config)# ip route 0.0.0.0 0.0.0.0 2.2.2.2

R1(config)# ip route 0.0.0.0 0.0.0.0 3.3.3.3 10

 

If you notice the Administrative Distance for the secondary route pointing to ISP2 is increased to 10 so that it becomes the backup link.

 

The above configuration with just two floating static routes partially accomplishes our requirement as it will work only in the scenario where the routers interfaces connected to the WAN link are in up/down or down/down status. But in a lot of situations we see that even though the links remain up but we are not able to reach the gateway, this usually happens when the issue is at the ISP side.

 

In such scenarios, IP SLAs becomes an engineer's best friend. With around six additional IOS commands we can have a more reliable automatic failover environment.

 

Using IP SLA the Cisco IOS gets the ability to use Internet Control Message Protocol (ICMP) pings to identify when a WAN link goes down at the remote end and hence allows the initiation of a backup connection from an alternative port. The Reliable Static Routing Backup using Object Tracking feature can ensure reliable backup in the case of several catastrophic events, such as Internet circuit failure or peer device failure.

 

IP SLA is configured to ping a target, such as a publicly routable IP address or a target inside the corporate network or your

next-hop IP 

on the ISP's router. The pings are routed from the primary interface only. Following a sample configuration of IP SLA to generate icmp ping targeted at the ISP1s

next-hop IP

 

R1(config)# ip sla 1

R1(config)# icmp-echo 2.2.2.2 source-interface FastEthernet0/0

R1(config)# timeout 1000

R1(config)# threshold 2

R1(config)# frequency 3

R1(config)# ip sla schedule 1 life forever start-time now

 

The above configuration defines and starts an IP SLA probe.

 

The ICMP Echo probe sends an ICMP Echo packet to

next-hop IP 2.2.2.2 every 3 seconds

as defined by the “frequency” parameter.

 

Timeout sets the amount of time (in milliseconds) for which the Cisco IOS IP SLAs operation waits for a response from its request packet.

 

Threshold sets the rising threshold that generates a reaction event and stores history information for the Cisco IOS IP SLAs operation.

 

After defining the IP SLA operation our next step is to define an object that tracks the SLA probe. This can be accomplished by using the IOS Track Object as shown below:

 

R1(config)# track 1 ip sla 1 reachability

 

The above command will track the state of the IP SLA operation. If there are no ping responses from the

 next-hop IP

the track will go down and it will come up when the ip sla operation starts receiving ping response.

To verify the track status use the use the

show track

command as shown below:

 

R1# show track 

Track 1

IP SLA 1 reachability

Reachability is Down

1 change, last change 00:03:19

Latest operation return code: Unknown


The above output shows that the track status is down. Every IP SLAs operation maintains an operation return-code value. This return code is interpreted by the tracking process. The return code may return OK, OverThreshold, and several other return codes.

 

Different operations may have different return-code values, so only values common to all operation types are used. The below table shows the track states as per the IP SLA return code.

Tracking

Return Code

Track State

Reachability

OK or over threshold

(all other return codes)

Up

Down

 

The Last step in the IP SLA Reliable Static Route configuration is to add the “track” statement to the default routes pointing to the ISP routers as shown below:

 

R1(config)# ip route 0.0.0.0 0.0.0.0 2.2.2.2 track 1

R1(config)# ip route 0.0.0.0 0.0.0.0 3.3.3.3 10

 

The track number keyword and argument combination specifies that the static route will be installed only if the state of the configured track object is up. Hence if the track status is down the secondary route will be used to forward all the traffic.

 

Hope the above clear and understand you.
Please rate all the helpfull posts.
Regards,
Naidu.

View solution in original post

4 Replies 4

Neeraj Arora
Level 3
Level 3

Hi Joe,

I doubt that its possible to stop the IP SLA tracking after certain number of pings (other experts might provide a way) but yes it is possible to schedule the IP SLA track i.e for how many minutes it should run and collect the data and then stop. You can even configure it in a recurring fashion so that it can collect the data every day at a fixed time for certain duration.

check the following document:

http://www.cisco.com/en/US/docs/ios/ipsla/command/reference/sla_02.html#wp1054093

http://blog.ipexpert.com/2011/05/11/ip-sla-scheduling-options/

Hope it helps

Neeraj

Hello Neeraj,

I am new for IP SLA, can you please provide me the sample configur?

Regards,

Joe

Well for tracking a static route for failover, you can refer to the following sample config:

 

ip sla 12

icmp-echo 4.2.2.2 source-interface FastEthernet4

timeout 1000

frequency 120




ip sla schedule 12 life forever start-time now     --> you can tweak this command to specify when IP SLA should start and for how long




track 2 rtr 12 reachability




ip route 0.0.0.0 0.0.0.0 192.168.0.26 track 2


 

Detailed document for Route tracking using IP SLA:

http://www.cisco.com/en/US/docs/ios/12_3/12_3x/12_3xe/feature/guide/dbackupx.html

Hi Joe,

 

Hope the below explaination will help you...

 

R1(config)# ip route 0.0.0.0 0.0.0.0 2.2.2.2

R1(config)# ip route 0.0.0.0 0.0.0.0 3.3.3.3 10

 

If you notice the Administrative Distance for the secondary route pointing to ISP2 is increased to 10 so that it becomes the backup link.

 

The above configuration with just two floating static routes partially accomplishes our requirement as it will work only in the scenario where the routers interfaces connected to the WAN link are in up/down or down/down status. But in a lot of situations we see that even though the links remain up but we are not able to reach the gateway, this usually happens when the issue is at the ISP side.

 

In such scenarios, IP SLAs becomes an engineer's best friend. With around six additional IOS commands we can have a more reliable automatic failover environment.

 

Using IP SLA the Cisco IOS gets the ability to use Internet Control Message Protocol (ICMP) pings to identify when a WAN link goes down at the remote end and hence allows the initiation of a backup connection from an alternative port. The Reliable Static Routing Backup using Object Tracking feature can ensure reliable backup in the case of several catastrophic events, such as Internet circuit failure or peer device failure.

 

IP SLA is configured to ping a target, such as a publicly routable IP address or a target inside the corporate network or your

next-hop IP 

on the ISP's router. The pings are routed from the primary interface only. Following a sample configuration of IP SLA to generate icmp ping targeted at the ISP1s

next-hop IP

 

R1(config)# ip sla 1

R1(config)# icmp-echo 2.2.2.2 source-interface FastEthernet0/0

R1(config)# timeout 1000

R1(config)# threshold 2

R1(config)# frequency 3

R1(config)# ip sla schedule 1 life forever start-time now

 

The above configuration defines and starts an IP SLA probe.

 

The ICMP Echo probe sends an ICMP Echo packet to

next-hop IP 2.2.2.2 every 3 seconds

as defined by the “frequency” parameter.

 

Timeout sets the amount of time (in milliseconds) for which the Cisco IOS IP SLAs operation waits for a response from its request packet.

 

Threshold sets the rising threshold that generates a reaction event and stores history information for the Cisco IOS IP SLAs operation.

 

After defining the IP SLA operation our next step is to define an object that tracks the SLA probe. This can be accomplished by using the IOS Track Object as shown below:

 

R1(config)# track 1 ip sla 1 reachability

 

The above command will track the state of the IP SLA operation. If there are no ping responses from the

 next-hop IP

the track will go down and it will come up when the ip sla operation starts receiving ping response.

To verify the track status use the use the

show track

command as shown below:

 

R1# show track 

Track 1

IP SLA 1 reachability

Reachability is Down

1 change, last change 00:03:19

Latest operation return code: Unknown


The above output shows that the track status is down. Every IP SLAs operation maintains an operation return-code value. This return code is interpreted by the tracking process. The return code may return OK, OverThreshold, and several other return codes.

 

Different operations may have different return-code values, so only values common to all operation types are used. The below table shows the track states as per the IP SLA return code.

Tracking

Return Code

Track State

Reachability

OK or over threshold

(all other return codes)

Up

Down

 

The Last step in the IP SLA Reliable Static Route configuration is to add the “track” statement to the default routes pointing to the ISP routers as shown below:

 

R1(config)# ip route 0.0.0.0 0.0.0.0 2.2.2.2 track 1

R1(config)# ip route 0.0.0.0 0.0.0.0 3.3.3.3 10

 

The track number keyword and argument combination specifies that the static route will be installed only if the state of the configured track object is up. Hence if the track status is down the secondary route will be used to forward all the traffic.

 

Hope the above clear and understand you.
Please rate all the helpfull posts.
Regards,
Naidu.

Review Cisco Networking for a $25 gift card