322 CHAPTER 28: OSPF CONFIGURATION
[SwitchA] display ospf routing
OSPF Process 1 with Router ID 1.1.1.1
Routing Tables
Routing for Network
Destination Cost Type NextHop AdvRouter Area
172.16.1.1/16 1563 Inter 192.168.1.2 2.2.2.2 0.0.0.0
10.0.0.0/8 1 Stub 10.1.1.1 1.1.1.1 0.0.0.0
192.168.1.0/24 1562 Stub 192.168.1.1 1.1.1.1 0.0.0.1
Total Nets: 3
Intra Area: 2 Inter Area: 1 ASE: 0 NSSA: 0 
Switch A has learned the route 172.16.1.1/16 to Area 2.
OSPF Graceful Restart
Configuration Example
Network requirements
■ Switch A, Switch B and Switch C that belong to the same autonomous system 
and the same OSPF routing domain are GR capable.
■ Switch A acts as the non IETF standard GR Restarter whereas Switch B and 
Switch C are the GR Helpers and remain OOB synchronized with Switch A 
through the GR mechanism.
Network diagram
Figure 98   Network diagram for OSPF-based GR configuration
 
Configuration procedure
1 Configure Switch A
<SwitchA> system-view
[SwitchA] interface vlan-interface 100
[SwitchA-Vlan-interface100] ip address 192.1.1.1 255.255.255.0
[SwitchA-Vlan-interface100] quit
[SwitchA] router id 1.1.1.1
[SwitchA] ospf 100
[SwitchA-ospf-100] enable link-local-signaling
[SwitchA-ospf-100] enable out-of-band-resynchronization
[RouterA-ospf-100] graceful-restart
[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] return 
2 Configure Switch B
Vlan-int100
192.1.1.1/24
Vlan-int100
192.1.1.3/24
Vlan-int100
192.1.1.2/24
GR helper GR helper
GR restarter
Switch A
Switch CSwitch B
Router ID: 1.1.1.1
Router ID: 2.2.2.2 Router ID: 3.3.3.3