Command Manual - Routing Protocol
Quidway S6500 Series Ethernet Switches Chapter 3 OSPF Configuration Commands
Huawei Technologies Proprietary
3-5
spf: Enables the debugging of the calculation of the OSPF shortest-path tree.
te: Enables the debugging of OSPF TE.
Description
Use the debugging ospf command to enable OSPF debugging.
Use the undo debugging ospf command to disable the function.
If no process ID is specified in the debugging command, the command is valid to all
the processes. And it keeps the state during the router running period no matter OSPF
process exits or not. If there is a specified process ID in the debugging command, only
the specified process is debugged.
Related command: display debugging ospf.
Example
# Enable the information debugging of OSPF packets.
<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 external route imported by OSPF, ranging from 0 to
16777214. By default, its value is 1.
Description
Using default cost command, you can configure the default cost for OSPF to import
external routes. Using undo default cost command, you can restore the default value
of the default routing cost configured for OSPF to import external routes.
Since OSPF can import external routing information, whose routing cost can influence
routing selection and calculation, and propagate it to the entire autonomous system, it
is necessary to specify the default routing cost for the protocol to import external routes.
Example
# Specify the default routing cost for OSPF to import external routes as 10.
[Quidway-ospf-1] default cost 10