R3303-HP HSR6800 Routers Layer 3 - IP Routing Command Reference

69
type: Specifies the default type for redistributed routes: 1 or 2.
Examples
# Configure the default cost, upper limit, tag, and type as 10, 20000, 100, and 2, respectively, for
redistributed external routes.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] default cost 10 limit 20000 tag 100 type 2
Related commands
import-route
default-cost (OSPF area view)
Use default-cost to configure a cost for the default route advertised to the stub or NSSA area.
Use undo default-cost to restore the default value.
Syntax
default-cost cost
undo default-cost
Default
The cost defaults to 1.
Views
OSPF area view
Default command level
2: System level
Parameters
cost: Specifies a cost for the default route advertised to the Stub or NSSA area, in the range of 0 to
167 77214 .
Usage guidelines
This command is only applicable to the ABR of a stub area or the ABR/ASBR of an NSSA area.
Examples
# Configure Area 1 as a stub area, and specify the cost of the default route advertised to the stub area
as 20.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] area 1
[Sysname-ospf-100-area-0.0.0.1] stub
[Sysname-ospf-100-area-0.0.0.1] default-cost 20
Related commands
nssa
stub