MSR Static Route+Track+NQA
system-view
[H3C]interface GigabitEthernet 0/3
[H3C-GigabitEthernet0/3]ip address 200.0.0.2 24
[H3C-GigabitEthernet0/3]nat outbound
[H3C-GigabitEthernet0/3]interface GigabitEthernet 0/4
[H3C-GigabitEthernet0/4]ip address 100.0.0.2 24
[H3C-GigabitEthernet0/4]nat outbound
[H3C-GigabitEthernet0/4]quit
#Create an NQA test group with the administrator name admin and the operation tag test
[H3C]nqa entry admin test
# Configure the test type as ICMP-echo.
[H3C-nqa-admin-test-icmp-echo] type icmp-echo
#Configure any address for monitoring the public network, such as 8.8.8.8
[H3C-nqa-admin-test-icmp-echo] destination ip 8.8.8.8
[H3C-nqa-admin-test-icmp-echo] frequency 3000
#Configure the next hop IP address .
[H3C-nqa-admin-test-icmp-echo] next-hop 100.0.0.1
[H3C-nqa-admin-test-icmp-echo] reaction 1 checked-element probe-fail threshold-type consecutive 3 action-type trigger-only
[H3C-nqa-admin-test-icmp-echo]quit
#Start detection
[H3C] nqa schedule admin test start-time now lifetime forever
[H3C] track 1 nqa entry admin test reaction 1
[H3C] ip route-static 0.0.0.0 0.0.0.0 100.0.0.1 track 1
[H3C] ip route-static 0.0.0.0 0.0.0.0 200.0.0.1 preference 80
#Save configuration
[H3C]save force
[H3C] ip route-static 0.0.0.0 0.0.0.0 100.0.0.1 track 1
[H3C] ip route-static 0.0.0.0 0.0.0.0 200.0.0.1 preference 80