|  | 
 
Command | 
 
Purpose | 
|---|
| 
 
Step 1  | 
 
 
 
 
hostname(config)# sla monitor sla_id
 
 | 
 
Configure the tracked object monitoring parameters by defining the monitoring process. 
 
If you are configuring a new monitoring process, you enter SLA monitor configuration mode. 
 
If you are changing the monitoring parameters for an unscheduled monitoring process that already has a type defined, you automatically enter SLA protocol configuration mode. | 
| 
 
Step 2  | 
 
 type echo protocol ipIcmpEcho target_ip 
 interface if_name
 
 
 
 
hostname(config-sla-monitor)# type echo 
protocol ipIcmpEcho target_ip interface 
if_name
 | 
 
Specify the monitoring protocol. 
 
If you are changing the monitoring parameters for an unscheduled monitoring process that already has a type defined, you automatically enter SLA protocol configuration mode and cannot change this setting. 
 
The target_ip is the IP address of the network object whose availability the tracking process monitors. While this object is available, the tracking process route is installed in the routing table. When this object becomes unavailable, the tracking process removed the route and the backup route is used in its place. | 
| 
 
Step 3  | 
 
 sla monitor schedule sla_id [life {forever 
| seconds}] [start-time {hh:mm[:ss] [month 
day | day month] | pending | now | after 
 hh:mm:ss}] [ageout seconds] [recurring]
 
 
 
 
hostname(config)# sla monitor schedule 
 sla_id [life {forever | seconds}] 
[start-time {hh:mm[:ss] [month day | day 
month] | pending | now | after hh:mm:ss}] 
 [ageout seconds] [recurring]
 | 
 
Schedule the monitoring process. 
 
Typically, you will use sla monitor schedulesla_id life forever start-time now for the monitoring schedule, and allow the monitoring configuration determine how often the testing occurs. 
 
However, you can schedule this monitoring process to begin in the future and to only occur at specified times. | 
| 
 
Step 4  | 
 
track track_id rtr sla_id reachability
 
 
 
 
hostname(config)# track track_id rtr 
sla_id reachability
 | 
 
Associate a tracked static route with the SLA monitoring process. 
 
The track_id is a tracking number you assign with this command. The sla_id is the ID number of the SLA process. | 
| 
 
Step 5  | 
 
Do one of the following to define the static route to be installed in the routing table while the tracked object is reachable.These options allow you to track a static route, or default route obtained through DHCP or PPPOE.
 | 
|  | 
 
 route if_name dest_ip mask gateway_ip 
 [admin_distance] track track_id
 
 
 
 
hostname(config)# route if_name dest_ip 
 mask gateway_ip [admin_distance] track 
track_id
 | 
 
This option tracks a static route. 
 
You cannot use the tunneled option with theroute command with static route tracking. | 
|  | 
 
hostname(config)# interface phy_if
 
 
hostname(config-if)# dhcp client route 
 track track_id
 
 
hostname(config-if)# ip addresss dhcp 
 setroute
 
 
hostname(config-if)# exit
 
 | 
 
This option tracks a default route obtained through DHCP, 
 
Remember that you must use the setrouteargument with the ip address dhcp command to obtain the default route using DHCP. | 
|  | 
 
hostname(config)# interface phy_if
 
 
hostname(config-if)# pppoe client route 
 track track_id
 
 
hostname(config-if)# ip addresss pppoe 
 setroute
 
 
hostname(config-if)# exit
 | 
 
This option tracks a default route obtained through PPPoE. 
 
You must use the setroute argument with the ip address pppoe command to obtain the default route using PPPoE. | 
 
No comments:
Post a Comment