Network Requirement
- TRACK links with SLA. Judge the validity of the static route on Device1 via the entity status.
Network Topology
![Networking of configuring TRACK to link with icmp-echo ipv6](/storage/images/Document/Maipu/monitoring/config-track-to-link-with-icmp-echo-ipv6.jpg)
Figure 3–8 Networking of configuring TRACK to link with icmp-echo ipv6
Configuration Steps
Step 1: Configure the IP address of the interface. (omitted)
Step 2: On Device1, configure the ICMP-echo ipv6 entity to detect the network connectivity between Device1 and Device2, and add the entity to the entity group.
#Configure Device1.
Device1#config terminal
Device1(config)#rtr enable
Device1(config)#rtr 1 icmpv6echo
Device1(config-rtr-icmpv6echo)# set 2135::2 5 70 2 12 extend 2135::1 0 FALSE
Device1(config-rtr-icmpv6echo)#number-of-history-kept 255
Device1(config-rtr-icmpv6echo)#exit
Device1(config)#rtr group 1
Device1(config-rtr-group)#member 1
Device1(config-rtr-group)#exit
|
Step 3:Define TRACK, and associate SLA.
#Configure Device1.
Device1(config)#track 1
Device1(config-track)#rtr 1
Device1(config-track)#exit
|
Step 4: Add static route and associate TRACK.
#Configure Device1.
Device1(config)#ipv6 route 2136::/64 2135::2 track 1
|
Step 5: Schedule the entity group.
#Configure Device1.
Device1(config)#rtr schedule 1 group 1 start now ageout 20 life forever
|
Step 6: Check the result.
- When the network connectivity between Device1 and 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 REACHABLE.
#In the route table of Device1, view the route of network segment 2136::/64.
Device1#show ipv6 route 2136::/64
Codes: C - Connected, L - Local, S - static, R - RIP, B - BGP, i-ISIS
U - Per-user Static route
O - OSPF, OE-OSPF External, M - Management
S 2136::/64 [1/0]
via 2135::2 [0], 00:50:17, vlan100
2135::2 [0], vlan100
The result shows that there is the route to the segment 2136::/64, indicating that when the status of the entity group is REACHABLE, judge that the associated static route is valid.
- When the network connectivity between Device1 and Device2 fails:
#View the entity group status.
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 network segment 2136::/64.
Device1#show ipv6 route 2136::/64
Codes: C - Connected, L - Local, S - static, R - RIP, B - BGP, i-ISIS
U - Per-user Static route
O - OSPF, OE-OSPF External, M - Management
The result shows that there is no route to the segment 2136::/64, indicating that when the status of the entity group is UNREACHABLE, judge that the associated static route is invalid.