64
default
Use
default
to configure default parameters for redistributed routes.
Use
undo
default
to remove the configuration.
Syntax
default
{
cost
cost
|
tag
tag
|
type
type
} *
undo default
{
cost
|
tag
|
type
} *
Default
The cost is 1, the tag is 1, and the route type is 2.
Views
OSPF view
Predefined user roles
network-admin
Parameters
cost
cost
: Specifies the default cost for redistributed routes, in the range of 0 to 16777214.
tag
tag
: Specifies the tag for marking redistributed routes, in the range of 0 to 4294967295.
type
type
: Specifies the type for redistributed routes: 1 or 2.
Examples
# Configure the default cost, tag, and type as 10, 100, and 2 for redistributed external routes.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] default cost 10 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 is 1.
Views
OSPF area view
Predefined user roles
network-admin