OSPF GR configuration example
Network requirements
As shown in Figure 29:
Switch A, Switch B, and Switch C that belong to the same AS and the same OSPF routing domain are GR capable.
Switch A acts as the non-IETF GR restarter. Switch B and Switch C are the GR helpers, and synchronize their LSDBs with Switch A through OOB communication of GR.
Figure 29: Network diagram
Configuration procedure
Configure IP addresses for interfaces. (Details not shown.)
Enable OSPF:
# Configure Switch A.
SwitchA> system-view [SwitchA] router id 1.1.1.1 [SwitchA] ospf 100 [SwitchA-ospf-100] area 0 [SwitchA-ospf-100-area-0.0.0.0] network 192.1.1.0 0.0.0.255 [SwitchA-ospf-100-area-0.0.0.0] quit
# Configure Switch B.
<SwitchB> system-view [SwitchB] router id 2.2.2.2 [SwitchB] ospf 100 [SwitchB-ospf-100] area 0 [SwitchB-ospf-100-area-0.0.0.0] network 192.1.1.0 0.0.0.255 [SwitchB-ospf-100-area-0.0.0.0] quit
# Configure Switch C.
<SwitchC> system-view [SwitchC] router id 3.3.3.3 [SwitchC] ospf 100 [SwitchC-ospf-100] area 0 [SwitchC-ospf-100-area-0.0.0.0] network 192.1.1.0 0.0.0.255 [SwitchC-ospf-100-area-0.0.0.0] quit
Configure OSPF GR:
# Configure Switch A as the non-IETF OSPF GR restarter: enable the link-local signaling capability, the out-of-band re-synchronization capability, and non-IETF GR capability for OSPF process 100.
[SwitchA-ospf-100] enable link-local-signaling [SwitchA-ospf-100] enable out-of-band-resynchronization [SwitchA-ospf-100] graceful-restart [SwitchA-ospf-100] return
# Configure Switch B as the GR helper: enable the link-local signaling capability and the out-of-band re-synchronization capability for OSPF process 100.
[SwitchB-ospf-100] enable link-local-signaling [SwitchB-ospf-100] enable out-of-band-resynchronization
# Configure Switch C as the GR helper: enable the link-local signaling capability and the out-of-band re-synchronization capability for OSPF process 100.
[SwitchC-ospf-100] enable link-local-signaling [SwitchC-ospf-100] enable out-of-band-resynchronization
Verifying the configuration
# Enable OSPF GR event debugging and restart the OSPF process by using GR on Switch A.
<SwitchA> debugging ospf event graceful-restart <SwitchA> terminal monitor <SwitchA> terminal logging level 7 <SwitchA> reset ospf 100 process graceful-restart Reset OSPF process? [Y/N]:y %Oct 21 15:29:28:727 2011 SwitchA OSPF/5/OSPF_NBR_CHG: OSPF 100 Neighbor 192.1.1.2(Vlan-interface100) from Full to Down. %Oct 21 15:29:28:729 2011 SwitchA OSPF/5/OSPF_NBR_CHG: OSPF 100 Neighbor 192.1.1.3(Vlan-interface100) from Full to Down. *Oct 21 15:29:28:735 2011 SwitchA OSPF/7/DEBUG: OSPF 100 nonstandard GR Started for OSPF Router *Oct 21 15:29:28:735 2011 SwitchA OSPF/7/DEBUG: OSPF 100 created GR wait timer,timeout interval is 40(s). *Oct 21 15:29:28:735 2011 SwitchA OSPF/7/DEBUG: OSPF 100 created GR Interval timer,timeout interval is 120(s). *Oct 21 15:29:28:758 2011 SwitchA OSPF/7/DEBUG: OSPF 100 created OOB Progress timer for neighbor 192.1.1.3. *Oct 21 15:29:28:766 2011 SwitchA OSPF/7/DEBUG: OSPF 100 created OOB Progress timer for neighbor 192.1.1.2. %Oct 21 15:29:29:902 2011 SwitchA OSPF/5/OSPF_NBR_CHG: OSPF 100 Neighbor 192.1.1.2(Vlan-interface100) from Loading to Full. *Oct 21 15:29:29:902 2011 SwitchA OSPF/7/DEBUG: OSPF 100 deleted OOB Progress timer for neighbor 192.1.1.2. %Oct 21 15:29:30:897 2011 SwitchA OSPF/5/OSPF_NBR_CHG: OSPF 100 Neighbor 192.1.1.3(Vlan-interface100) from Loading to Full. *Oct 21 15:29:30:897 2011 SwitchA OSPF/7/DEBUG: OSPF 100 deleted OOB Progress timer for neighbor 192.1.1.3. *Oct 21 15:29:30:911 2011 SwitchA OSPF/7/DEBUG: OSPF GR: Process 100 Exit Restart,Reason : DR or BDR change,for neighbor : 192.1.1.3. *Oct 21 15:29:30:911 2011 SwitchA OSPF/7/DEBUG: OSPF 100 deleted GR Interval timer. *Oct 21 15:29:30:912 2011 SwitchA OSPF/7/DEBUG: OSPF 100 deleted GR wait timer. %Oct 21 15:29:30:920 2011 SwitchA OSPF/5/OSPF_NBR_CHG: OSPF 100 Neighbor 192.1.1.2(Vlan-interface100) from Full to Down. %Oct 21 15:29:30:921 2011 SwitchA OSPF/5/OSPF_NBR_CHG: OSPF 100 Neighbor 192.1.1.3(Vlan-interface100) from Full to Down. %Oct 21 15:29:33:815 2011 SwitchA OSPF/5/OSPF_NBR_CHG: OSPF 100 Neighbor 192.1.1.3(Vlan-interface100) from Loading to Full. %Oct 21 15:29:35:578 2011 SwitchA OSPF/5/OSPF_NBR_CHG: OSPF 100 Neighbor 192.1.1.2(Vlan-interface100) from Loading to Full.
The output shows that Switch A completes GR.