172 
Configuration procedure 
1.  Configure IP addresses and subnet masks for interfaces on the routers. (Details not shown.) 
2.  Configure IS-IS on the routers to make sure Router A, Router D, and Router S can communicate with 
each other at the network layer. (Details not shown.) 
3.  Configure IS-IS FRR: 
Enable IS-IS FRR to automatically calculate a backup next hop, or designate a backup next hop by 
using a routing policy. 
{  (Method 1.) Enable IS-IS FRR to automatically calculate a backup next hop: 
# Configure Router S.  
<RouterS> system-view 
[RouterS] bfd echo-source-ip 1.1.1.1 
[RouterS] isis 1 
[RouterS-isis-1] fast-reroute auto 
[RouterS-isis-1] quit 
# Configure Router D.  
<RouterD> system-view 
[RouterD] bfd echo-source-ip 4.4.4.4 
[RouterD] isis 1 
[RouterD-isis-1] fast-reroute auto 
[RouterD-isis-1] quit 
{  (Method 2.) Enable IS-IS FRR to designate a backup next hop by using a routing policy: 
# Configure Router S. 
<RouterS> system-view 
[RouterS] bfd echo-source-ip 1.1.1.1 
[RouterS] ip prefix-list abc index 10 permit 4.4.4.4 32 
[RouterS] route-policy frr permit node 10 
[RouterS-route-policy-frr-10] if-match ip address prefix-list abc 
[RouterS-route-policy-frr-10] apply fast-reroute backup-interface ethernet 1/1 
backup-nexthop 12.12.12.2 
[RouterS-route-policy-frr-10] quit 
[RouterS] isis 1 
[RouterS-isis-1] fast-reroute route-policy frr 
[RouterS-isis-1] quit 
# Configure Router D.  
<RouterD> system-view 
[RouterD] bfd echo-source-ip 4.4.4.4 
[RouterD] ip prefix-list abc index 10 permit 1.1.1.1 32 
[RouterD] route-policy frr permit node 10 
[RouterD-route-policy-frr-10] if-match ip address prefix-list abc 
[RouterD-route-policy-frr-10] apply fast-reroute backup-interface ethernet 1/1 
backup-nexthop 24.24.24.2 
[RouterD-route-policy-frr-10] quit 
[RouterD] isis 1 
[RouterD-isis-1] fast-reroute route-policy frr 
[RouterD-isis-1] quit