95
Task Command
Clear OSPF statistics. reset ospf [ process-id ] counters
Reset an OSPF process. reset ospf [ process-id ] process [ graceful-restart ]
Re-enable OSPF route
redistribution.
reset ospf [ process-id ] redistribution
OSPF configuration examples
Basic OSPF configuration example
Network requirements
• Enable OSPF on all routers, and split the AS into three areas.
• Configure Router A and Router B as ABRs.
Figure 22 Network diagram
Configuration procedure
1. Configure IP addresses for interfaces. (Details not shown.)
2. Enable OSPF:
# Configure Router A.
<RouterA> system-view
[RouterA] router id 10.2.1.1
[RouterA] ospf
[RouterA-ospf-1] area 0
[RouterA-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
[RouterA-ospf-1-area-0.0.0.0] quit
[RouterA-ospf-1] area 1
[RouterA-ospf-1-area-0.0.0.1] network 10.2.1.0 0.0.0.255
[RouterA-ospf-1-area-0.0.0.1] quit
[RouterA-ospf-1] quit
# Configure Router B.
<RouterB> system-view
[RouterB] router id 10.3.1.1
Area 0
Area 1
Area 2
Router C
Eth1/1
10.1.1.2/24
Eth1/1
10.1.1.1/24
Eth1/2
10.4.1.1/24
Eth1/1
10.2.1.2/24
Router B
Eth1/2
10.3.1.1/24
Eth1/1
10.3.1.2/24
Router A
Eth1/2
10.2.1.1/24
Eth1/2
10.5.1.1/24
Router D