Task
Display OSPF error information.
Display OSPF ASBR
summarization information.
Display the global router ID.
Clear OSPF statistics.
Reset an OSPF process.
Re-enable OSPF route
redistribution.
OSPF configuration examples
These configuration examples only cover OSPF configuration related commands.
Configuring OSPF basic functions
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
Configure IP addresses for interfaces. (Details not shown.)
1.
Configure OSPF basic functions:
2.
# Configure Router A.
<RouterA> system-view
[RouterA] ospf
Command
display ospf [ process-id ] error [ | { begin |
exclude | include } regular-expression ]
display ospf [ process-id ] asbr-summary
[ ip-address { mask | mask-length } ] [ | { begin |
exclude | include } regular-expression ]
display router id [ | { begin | exclude | include }
regular-expression ]
reset ospf [ process-id ] counters [ neighbor
[ interface-type interface-number ] [ router-id ] ]
reset ospf [ process-id ] process
[ graceful-restart ]
reset ospf [ process-id ] redistribution
88
Remarks
Available in any
view.
Available in any
view.
Available in any
view.
Available in user
view.
Available in user
view.
Support for this
command
depends on the
device model.
Available in user
view.