1-46
To do…
Use the command…
Remarks
Reset an OSPF process
reset ospf
[
process-id
]
process
[
graceful-restart
]
Re-enable OSPF route
redistribution
reset ospf
[
process-id
]
redistribution
OSPF Configuration Examples
These examples only cover commands for OSPF configuration.
Configuring OSPF Basic Functions
Network requirements
z
As shown in the following figure, all switches run OSPF. The AS is split into three areas, in which,
Switch A and Switch B act as ABRs to forward routing information between areas.
z
After configuration, all switches can learn routes to every network segment in the AS.
Figure 1-21
Network diagram for OSPF basic configuration
Configuration procedure
1) Configure IP addresses for interfaces (omitted)
2) Configure OSPF basic functions
# Configure Switch A.
<SwitchA> system-view
[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