default (OSPF view)

Use default to configure default parameters for redistributed routes.

Use undo default to remove the configuration.

Syntax

default { cost cost-value | 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-value: Specifies a default cost for redistributed routes, in the range of 0 to 16777214.

tag tag: Specifies a tag for redistributed routes, in the range of 0 to 4294967295.

type type: Specifies a type for redistributed routes: 1 or 2.

Examples

# Set the default cost, tag, and type to 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