Ospf configuration examples, Configuring ospf basic functions, Network requirements – H3C Technologies H3C S10500 Series Switches User Manual
Page 117: Configuration procedure

102
To do…
Use the command…
Remarks
Reset OSPF counters
reset ospf [ process-id ] counters [ neighbor
[ interface-type interface-number ] [ router-id ] ]
Reset an OSPF process
reset ospf [ process-id ] process [ graceful-restart ]
Re-enable OSPF route
redistribution
reset ospf [ process-id ] redistribution
Available in user
view
OSPF configuration examples
NOTE:
These examples only cover commands for OSPF configuration.
Configuring OSPF basic functions
Network requirements
•
As shown in
, all switches run OSPF. The AS is split into three areas, where Switch A and
Switch B act as ABRs to forward routing information between areas.
•
After configuration, all switches can learn routes to every network segment in the AS.
Figure 38 Network diagram for OSPF basic configuration
Configuration procedure
1.
Configure IP addresses for interfaces. (Details not shown)
2.
Configure OSPF basic functions.
# Configure Switch A.
[SwitchA] ospf
[SwitchA-ospf-1] area 0
[SwitchA-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
[SwitchA-ospf-1-area-0.0.0.0] quit
[SwitchA-ospf-1] area 1
[SwitchA-ospf-1-area-0.0.0.1] network 10.2.1.0 0.0.0.255
[SwitchA-ospf-1-area-0.0.0.1] quit