You are on page 1of 6

How to Use IP SLA to Change Routing?

Cisco IOS IP Service Level Agreements (SLAs) is a part of Cisco IOS that enables customers to assure new business-critical IP applications, as well as IP services that utilize data, voice, and video, in an IP network. Cisco has augmented traditional service level monitoring and advanced the IP infrastructure to become IP application-aware b measuring both end-to-end and at the IP la er. !ith Cisco IOS IP S"#s, service provider customers can measure and provide service level agreements, and enterprise customers can verif service levels, verif outsourced service level agreements, and understand network performance. Cisco IOS IP S"#s can perform network assessments, verif $ualit of service %&oS', ease the deplo ment of new services, and assist with network troubleshooting. IP SLAs collects a uni$ue subset of these performance metrics( )ela %both round-trip and one-wa ' *itter %directional' Packet loss %directional' Packet se$uencing %packet ordering' Path %per hop' Connectivit %directional' Server or website download time +ere in this article, we will share an e,ample of using IP S"# to change our default route.

-irst we create our IP S"#. In this e,ample we want to ping our default gatewa of our primar internet connection. In the above diagram that would relate to ...b.c.d. ip sla monitor ./ t pe echo protocol ipIcmp0cho ...b.c.d timeout ./// fre$uenc 1
1

threshold 2 ip sla monitor schedule . life forever start-time now 3e,t we create a tracked ob4ect. 5his one points to the reachabilit of the IP S"#. 3ote that the number ./ relates to the ip sla monitor number. track ./ rtr . reachabilit 3e,t we create an #C". 5his permits IC6P to our default gatewa . 5his is used in our route map to determine the reachabilit . ip access-list ./. permit icmp an host ...b.c.d echo 3e,t we create our route map. !e macth on the #C" we 4ust created, then set the ne,t hop as the preferred provider IP %...b.c.d'. 7ou must set the interface to null/. route-map )0-#8"5-9O850-PO"IC7 permit ./ match ip address ./. set ip ne,t-hop ...b.c.d set interface null / 3e,t we create a local routing polic to use our newl created route map. ip local polic route-map )0-#8"5-9O850-PO"IC7 -inall we put in our default routes. 5he first default route points to our preferred provide and we append the tracking to it. !e then add the second default route with a higher weight %floating static route'. !hat this does for us is the router will track the preffered default route. If for some reason we lose connectivit %from the IPS S"#' the route will be removed and an secondar default route will be added. In this e,ample the new default route will point to ./..1:.;.2// ip route /./././ /./././ ...b.c.d track ./ ip route /./././ /./././ .<2..:=.>.; 2// "et?s take a look at see what happens when we fail over. -irst let?s check IP S"# and make sure it?s working. 9outer@show ip sla statistics 9ound 5rip 5ime %955' for Inde, ./ "atest 955( 3oConnectionABus A5imeout
2

"atest operation start time( C.<(>.(>:.>.. 85C Sun *ul .> 2//2 "atest operation return code( 5imeout 3umber of successes( 211 3umber of failures( / Operation time to live( -orever Dreat, that?s working. 3ow let?s check the routing table. 9outer@show ip route Codes( C E connected, S E static, 9 E 9IP, 6 E mobile, B E BDP ) E 0ID9P, 0F E 0ID9P e,ternal, O E OSP-, I# E OSP- inter area 3. E OSP- 3SS# e,ternal t pe ., 32 E OSP- 3SS# e,ternal t pe 2 0. E OSP- e,ternal t pe ., 02 E OSP- e,ternal t pe 2 i E IS-IS, su E IS-IS summar , ". E IS-IS level-., "2 E IS-IS level-2 ia E IS-IS inter area, C E candidate default, 8 E per-user static route o E O)9, P E periodic downloaded static route Datewa of last resort is ...b.c.d to network /./././ ././././A2> is subnetted, . subnets C ./...2./ is directl connected, Glan. SC /./././A/ H.A/I via ...b.c.d "ooks good there. "et?s take a look at the tracking. 9outer@show ip route track-table ip route /./././ /./././ ...b.c.d track ./ state is HupI 0ver thing is working when the preferred provider is up. -rom a client lets do a trace route so we know what wa where we?re going.

3ow let?s take that circuit down and see if it properl fails over.
3

C*ul .> .<(>J(/;.12J( K"I30P9O5O-;-8P)O!3( "ine protocol on Interface -ast0thernet/, changed state to down C*ul .> .<(>J(/;.12J( K"I30P9O5O-;-8P)O!3( "ine protocol on Interface Glan., changed state to down C*ul .> .<(>J(/:.11.( K"I3L-1-8P)O!3( Interface -ast0thernet/, changed state to down C*ul .> .<(>J(/:.1:1( K59#CLI3D-;-S5#50( ./ rtr . reachabilit 8p-M)own 9outer@ "et?s take a look at the tracking state. 9outer@show ip route track-table ip route /./././ /./././ ...b.c.d track ./ state is HdownI 9outer@ -inall let?s check the routing table. 9outer@show ip route Codes( C E connected, S E static, 9 E 9IP, 6 E mobile, B E BDP ) E 0ID9P, 0F E 0ID9P e,ternal, O E OSP-, I# E OSP- inter area 3. E OSP- 3SS# e,ternal t pe ., 32 E OSP- 3SS# e,ternal t pe 2 0. E OSP- e,ternal t pe ., 02 E OSP- e,ternal t pe 2 i E IS-IS, su E IS-IS summar , ". E IS-IS level-., "2 E IS-IS level-2 ia E IS-IS inter area, C E candidate default, 8 E per-user static route o E O)9, P E periodic downloaded static route Datewa of last resort is .<2..:=.>.; to network /./././ C .<2..:=.>.;./A2> is directl connected, Glan2 SC /./././A/ H2;>A/I via .<2..:=.>.; 9outer@ "et?s tr another trace route from the client.

0ver thing is workingN "et?s check to make sure when the preferred provider come back on line that we go back to routing out that wa . C*ul .> .<(;>(/1.1<;( K"I30P9O5O-;-8P)O!3( "ine protocol on Interface Glan., changed state to up C*ul .> .<(;>(/>.1=J( K"I3L-1-8P)O!3( Interface -ast0thernet/, changed state to up C*ul .> .<(;>(/;.1=J( K"I30P9O5O-;-8P)O!3( "ine protocol on Interface -ast0thernet/, changed state to up 9outer@ 9outer@ C*ul .> .<(;>(>..1:J( K59#CLI3D-;-S5#50( ./ rtr . reachabilit )own-M8p 9outer@show ip route track-table ip route /./././ /./././ ...b.c.d track ./ state is HupI 9outer@show ip route Codes( C E connected, S E static, 9 E 9IP, 6 E mobile, B E BDP ) E 0ID9P, 0F E 0ID9P e,ternal, O E OSP-, I# E OSP- inter area 3. E OSP- 3SS# e,ternal t pe ., 32 E OSP- 3SS# e,ternal t pe 2 0. E OSP- e,ternal t pe ., 02 E OSP- e,ternal t pe 2 i E IS-IS, su E IS-IS summar , ". E IS-IS level-., "2 E IS-IS level-2 ia E IS-IS inter area, C E candidate default, 8 E per-user static route o E O)9, P E periodic downloaded static route Datewa of last resort is ...b.c.d to network /./././ ././././A2> is subnetted, . subnets C ./...2./ is directl connected, Glan.
5

SC /./././A/ H.A/I via ...b.c.d 9outer@ It failed back correctl . # final test from the client workstation and we?re good to go.

https(AAsupportforums.cisco.comAdocsA)OC-:/J= and It is referred from http://www.cisco.com/en/US/docs/ios/dial/configuration/guide/dia_rel_stc_rtg_bckup_ps6350_ S!_"roducts_#onfiguration_$uide_#hapter.html

More relate ! Cisco Switch IOS versions 2<:/S Cisco PO0 Switch +ow to recover password for Cisco 2<:/ SwitchO More Cisco "ro ucts an Reviews #ou can visit! http://www.3anetwork.com/blog

1#network.com is a world leading Cisco networking products wholesaler, we wholesale original new Cisco networking e$uipments, including Cisco Catal st switches, Cisco routers, Cisco firewalls, Cisco wireless products, Cisco modules and interface cards products at competitive price and ship to worldwide. Our website( http(AAwww.1anetwork.com 5elephone( P=;2-1/:<-JJ11 0mail( infoQ1#network.com #ddress( 21A- "uck Plaza, 1.;-12. "ockhart 9oad, !anchai, +ongkong

You might also like