ipsla
operation 1
type icmp echo
destination address 10.1.1.2
timeout 5000
frequency 10
statistics interval 30
buckets 3
!
!
!
operation 2
type icmp echo
destination address 20.1.1.2
timeout 500
frequency 5
statistics interval 10
buckets 3
!
!
!
reaction operation 1
react timeout
action trigger
threshold type immediate
!
react rtt
action logging
threshold lower-limit 4 upper-limit 5
!
!
reaction operation 2
react timeout
action trigger
threshold type immediate
!
react rtt
action logging
threshold lower-limit 4 upper-limit 5
!
!
schedule operation 1
start-time now
life forever
!
schedule operation 2
start-time now
life forever
================================
上面是sla配置,想要在router static里使用:
================================
router static
address-family ipv4 unicast
2.2.2.2/32 GigabitEthernet0/0/0/0 10.1.1.2 track 1
2.2.2.2/32 GigabitEthernet0/0/0/1 20.1.1.2 track 2
10.2.1.0/24 GigabitEthernet0/0/0/0 10.1.1.2
20.2.1.0/24 GigabitEthernet0/0/0/1 20.1.1.2
================================
这样配置以后,sla里检测的目的地址不断,可以检测到。但到2.2.2.2/32的路由都不会写入路由表!
删除track1,下一跳为10.1.1.2的路由出现在了路由表。
反复测试,只要加了track的路由就不会出现在路由表中!
请教一下,IOS-XR中,IPSLA到底怎么配置?