Command Manual - Routing Protocol
Quidway S3500 Series Ethernet Switches Chapter 3 OSPF Configuration Commands
Huawei Technologies Proprietary
3-7
3.1.9 default type
Syntax
default type { 1 | 2 }
undo default type
View
OSPF view
Parameter
type 1: External routes of type 1.
type 2: External routes of type 2.
Description
Using default type command, you can configure the default type when OSPF
redistributes external routes. Using undo default type command, you can restore the
default type when OSPF redistributes external routes.
By default, the external routes of type 2 are imported.
OSPF specifies the two types of external routing information. The command described
in this section can be used to specify the default type when external routes are
imported.
For the related commands, see default tag.
Example
# Specify the default type as type 1 when OSPF imports an external route.
[Quidway-ospf] default type 1
3.1.10 default-cost
Syntax
default-cost value
undo default-cost
View
OSPF Area view
Parameter
value: Specify the cost value of the default route transmitted by OSPF to the STUB or
NSSA area, ranging from 0 to 16777214. The default value is 1.