H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – Routing Protocol
H3C S7500 Series Ethernet Switches Chapter 3 OSPF Configuration Commands
3-5
3.1.5 default cost
Syntax
default cost value
undo default cost
View
OSPF view
Parameters
value: Default cost of external routes imported by OSPF, in the range 0 to 16777214.
By default, its value is 1.
Description
Use the default cost command to configure the default cost for OSPF imported
external routes.
Use the undo default cost command to restore the 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.
Examples
# Specify the default cost for OSPF imported external routes as 10.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] ospf 1
[H3C-ospf-1] default cost 10
3.1.6 default interval
Syntax
default interval seconds
undo default interval
View
OSPF view
Parameters
seconds: Interval to import external routes in seconds, in the range 1 to 2147483647,
with the default of 1.