96
Task Command
Display OSPF interface
information.
display ospf
[ process-id ]
interface
[ interface-type interface-number |
verbose
]
Display OSPF route calculation
log information.
display ospf
[ process-id ]
event-log
{
lsa-flush
|
peer
|
spf
}
Display OSPF ASBR route
summarization information.
display ospf
[
process-id
]
asbr-summary
[ ip-address { mask-length |
mask } ]
Display the global route ID.
display router id
Clear OSPF statistics.
reset ospf
[ process-id ]
statistics
Clear OSPF log information.
reset ospf
[ process-id ]
event-log
[
lsa-flush
|
peer
|
spf
]
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 configuration examples only cover commands for OSPF configuration.
Basic OSPF configuration example
Network requirements
As shown in Figure 22:
• Enable OSPF on all switches, and split the AS into three areas.
• Configure Switch A and Switch B as ABRs.
Figure 22 Network diagram
Configuration procedure
1. Configure IP addresses for interfaces. (Details not shown.)
2. Enable OSPF:
# Configure Switch A.
<SwitchA> system-view
[SwitchA] router id 10.2.1.1
[SwitchA] ospf
[SwitchA-ospf-1] area 0
Area 0
Area 1
Area 2
Switch C
Vlan-int100
10.1.1.2/24
Vlan-int100
10.1.1.1/24
Vlan-int300
10.4.1.1/24
Vlan-int200
10.2.1.2/24
Switch B
Vlan-int200
10.3.1.1/24
Vlan-int200
10.3.1.2/24
Switch A
Vlan-int200
10.2.1.1/24
Vlan-int300
10.5.1.1/24
Switch D