Configure NQA:
[RT1]nqa entry admin reboot
[RT1-nqa-admin-reboot]type icmp-echo
[RT1-nqa-admin-reboot-icmp-echo] destination ip 2.2.2.2
[RT1-nqa-admin-reboot-icmp-echo]frequency 100
[RT1-nqa-admin-reboot-icmp-echo]reaction 1 checked-element
probe-fail threshold-type consecutive 3
action-type trigger-only
[RT1]nqa schedule admin reboot start-time now lifetime forever
[RT1]%Jan 20 20:39:31:601 2022 RT1 NQA/6/NQA_ENTRY_PROBE_RESULT:
Reaction entry 1 of NQA e ntry admin-name admin operation-tag reboot:
probe-pass.
Configure Track:
[RT1]track 1 nqa entry admin reboot reaction 1
Configure EAA:
[RT1]rtm cli-policy reboot
[RT1-rtm-reboot]event track 1 state negative
[RT1-rtm-reboot]action 0 cli save force
[RT1-rtm-reboot]action 1 cli reboot force
[RT1-rtm-reboot]action 2 cli y
[RT1-rtm-reboot]user-role network-admin
[RT1-rtm-reboot]commit
Then I test on lab, when I shutdown the port whose ip address is
2.2.2.2 on another Router, the RT1 will reboot by itself.
[RT2-LoopBack0]shutdown
[RT2-LoopBack0]di th
#
interface LoopBack0
shutdown
ip address 2.2.2.2 255.255.255.255
#