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-8
3.1.9 default type
Syntax
default type { 1 | 2 }
undo default type
View
OSPF view
Parameters
type 1: External routes of type 1.
type 2: External routes of type 2.
Description
Use the default type command to configure the default routing information type when
OSPF imports external routes.
Use the undo default type command to restore the default setting.
OSPF defines two types of external routing information.
By default, the external routes of type 2 are imported.
Related commands: default tag.
Examples
# Configure OSPF to import external routes of type 1 by default.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] ospf 1
[H3C-ospf-1] default type 1
3.1.10 default-cost
Syntax
default-cost value
undo default-cost
View
OSPF area view
Parameters
value: Cost of the default route transmitted by OSPF to the Stub or NSSA area. The
value ranges from 0 to 16777214 and defaults to 1.