IS-IS Graceful Restart Configuration
The Intermediate System to Intermediate System (IS-IS) routing protocol is a link state intra-domain routing protocol. Normally, when an IS-IS router is restarted, temporary disruption of routing occurs due to events in both the restarting router and the neighbors of the restarting router.
ISIS provides graceful restart, in which the adjacency and routes are maintained in the routing table for the grace period. In this way, the data flow is not affected, and there is no packet loss during the restart phase.
With ISIS GR, the ISIS router should be able to restart gracefully with non-stop forwarding during the recovery. And the Helper ISIS router should be able to help restarting router by maintaining the adjacency.
ISIS Grace Restart Functionality applies to:
• ISIS broadcast network
• ISIS point-to-point network
• IPv4 domain
• IPv6 domain
Topology
In this example, R1 is the L1/L2 router, and R2 is the L1/L2 restart-helper router.
IS-IS Graceful Restart
Configuration
The following configuration is given only for R2, assuming that the adjacency with R1 is already up and the route tables with the appropriate routes are already populated.
R2
#configure terminal | Enter configure mode. |
(config)#isis restart helper | Configure this router as a restart helper. |
(config)#isis restart grace-period 100 | Set the grace period to 100 seconds. The restarting router should come up before 100 seconds, otherwise, the adjacency and routes will be deleted. |
(config)#commit | Commit candidate configuration to the running configuration |
Note: The IS-IS daemon in the restarting router must be manually restarted using restart isis graceful command: it does not restart automatically.
Note: The scope of unplanned GR is that if the ISIS daemon crashes or gets killed with SIGSEGV signal then the routes will be stale marked until the hold time (30 seconds), assuming that ISIS will be restarted within the hold time. Neighbor adjacency cannot be maintained in unplanned GR.
Validation
R2#show ip route
Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP
O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2,
ia - IS-IS inter area, E - EVPN,
v - vrf leaked
* - candidate default
IP Route Table for VRF "default"
C 13.1.1.0/24 is directly connected, eth1, 04:08:20
i ia 20.0.0.0/6 [115/11] via 13.1.1.2, eth1, 00:10:44
i L1 33.0.0.0/24 [115/20] via 13.1.1.2, eth1, 00:10:44
C 127.0.0.0/8 is directly connected, lo, 04:10:59
C 192.168.52.0/24 is directly connected, eth0, 04:10:55
R2#show clns neighbors
Tag 1: VRF : default
System Id Interface SNPA State Holdtime Type Protocol
0000.0000.0002 eth1 5254.0099.1e21 Up 20 L1 IS-IS
R2#show ip route database
Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP
O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2,
ia - IS-IS inter area, E - EVPN,
v - vrf leaked
> - selected route, * - FIB route, p - stale info
IP Route Table for VRF "default"
C *> 13.1.1.0/24 is directly connected, eth1, 04:10:56
i L1 13.1.1.0/24 [115/10] is directly connected, eth1, 01:58:50
i ia *> 20.0.0.0/6 [115/11] via 13.1.1.2, eth1, 00:13:20
i L1 *> 33.0.0.0/24 [115/20] via 13.1.1.2, eth1, 00:13:20
C *> 127.0.0.0/8 is directly connected, lo, 04:13:35
C *> 192.168.52.0/24 is directly connected, eth0, 04:13:31
Gateway of last resort is not set