Network Requirement
- TRACK links with SLA. Judge the validity of the static route on Device1 via the entity status.
Network Topology

Figure 3–7 Networking of configuring TRACK to link with SLA
Configuration Steps
Step 1: Configure VLAN and add the port to the corresponding VLAN. (Omitted)
Step 2: Configure the IP address of the interface. (Omitted)
Step 3: Configure the ICMP-echo entity on Device1 to detect the network connectivity from Device1 to Device2, and add the entity to the entity group.
#Configure Device1.
Device1#config terminal
Device1(config)#rtr enable
Device1(config)#rtr 1 icmpecho
Device1(config-rtr-icmpecho)#set 110.1.0.2 5 70 2 12 extend 110.1.0.1 0 true false
Device1(config-rtr-icmpecho)#number-of-history-kept 255
Device1(config-rtr-icmpecho)#exit
Device1(config)#rtr group 1
Device1(config-rtr-group)#member 1
Device1(config-rtr-group)#exit
|
Step 4: Define TRACK and associate with LSA.
#Configure Device1.
Device1(config)#track 1
Device1(config-track)#rtr 1
|
Step 5: Add the static route and associate TRACK.
#Configure Device1.
Device1(config)#ip route 192.0.0.0 255.255.255.0 110.1.0.2 track 1
|
Step 6: Schedule the entity and check the validity of the static route.
#Configure Device1.
Device1(config)#rtr schedule 1 group 1 start now ageout 100 life forever
|
Step 7: Check the result.
- When the network connectivity from Device1 to Device2 is normal:
#View the entity group status.
Device1#show rtr group 1
-----------------------------------------------------------
ID:1 name:rtrGroup1 Members schedule interval:0
Option: AND Status:REACHABLE
*****************************
type:SINGLE Entity Id :1
The status of the entity group is REACHEABLE.
#In the route table of Device1, view the route of the segment 192.0.0.0/24.
Device1#show ip route 192.0.0.0
Codes: C - connected, S - static, R - RIP, O - OSPF, OE-OSPF External, M - Management
D - Redirect, E - IRMP, EX - IRMP external, o - SNSP, B - BGP, i-ISIS
Gateway of last resort is not set
S 192.0.0.0/24 [1/10] via 110.1.0.2, 00:00:09, vlan2
The result displays that there is the route to the segment 192.0.0.0/24, indicates that when the status of the entity group is RECHABLE, judge that the static route is valid.
- When the network connectivity from Device1 to Device2 is faulty:
#View the status of the entity group:
Device1#show rtr group 1
------------------------------------------------------------
ID:1 name:rtrGroup1 Members schedule interval:0
Option: AND Status:UNREACHABLE
*****************************
type:SINGLE Entity Id :1
The status of the entity group is UNREACHEABLE.
#In the route table of Device1, view the route of the segment 192.0.0.0/24.
Device1#show ip route 192.0.0.2
Codes: C - connected, S - static, R - RIP, O - OSPF, OE-OSPF External, M Management
D - Redirect, E - IRMP, EX - IRMP external, o - SNSP, B BGP, i-ISIS
Gateway of last resort is not set
The result displays that there is no route to the segment 192.0.0.0/24, indicates that when the status of the entity group is UNREACHABLE, judge that the static route is invalid.