Command Manual – Routing Protocol 
Quidway S8500 Series Routing Switches  Chapter 3  OSPF Configuration Commands
 
Huawei Technologies Proprietary 
3-5 
event: Enables/Disables OSPF event debugging. 
packet: Enables/Disables OSPF packet debugging. OSPF packets include: 
ack: LSAck packet. 
dd: Database Description packet. 
hello: Hello packet. 
request: Link State Request packet. 
update: Link State Update packet. 
interface interface-type interface-number: Interface type and number, which indicates 
to enable/disable debugging for the OSPF packets obtained on the specified interface. 
lsa-originate: Enables/Disables OSPF LSA packet debugging. 
spf: Enables/Disables OSPF minimum tree calculation debugging. 
Description 
Use the debugging ospf command to enable OSPF process debugging. 
Use the undo debugging ospf command to disable OSPF process debugging. 
If you do not specify a process ID, the command is applied to all processes. While the 
router is operating, the debugging state always remains regardless of the existing 
OSPF process. If you specify a process ID, the command is only applied to the 
specified process. 
Related command: display debugging ospf. 
Example 
# Enable OSPF packet debugging. 
<Quidway> debugging ospf packet 
3.1.6  default cost 
Syntax 
default cost value 
undo default cost 
View 
OSPF view 
Parameter 
value: Default routing cost of an external route imported by OSPF, ranging from 0 to 
16,777,214. By default, its value is 1.