Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510
Chapter 3 OSPF Configuration Commands
Huawei Technologies Proprietary
3-5
[Quidway-ospf-1-area-0.0.0.0] authentication-mode md5
3.1.5 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
16,777,214. By default, its value is 1.
Description
Use the
default cost
command to configure the default cost for OSPF to import
external routes.
Use the
undo default cost
command to restore the default routing cost of external
routes to its default value.
Since OSPF can import external routing information and propagate the information to
the entire autonomous system, routing cost of external routes can influence route
selection and calculation. Therefore, 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> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ospf 1
[Quidway-ospf-1] default cost 10
3.1.6 default interval
Syntax
default interval
seconds
undo default interval
View
OSPF view