default cost

Use default cost to configure a default metric for redistributed routes.

Use undo default cost to restore the default.

Syntax

default cost cost-value

undo default cost

Default

The default metric of redistributed routes is 0.

Views

RIPng view

Predefined user roles

network-admin

Parameters

cost-value: Specifies a default metric for redistributed routes, in the range of 0 to 16.

Usage guidelines

When you use the import-route command to redistribute routes from another routing protocol without specifying a metric, the metric specified by the default cost command applies.

Examples

# Configure a default metric of 2 for redistributed routes.

<Sysname> system-view
[Sysname] ripng 100
[Sysname-ripng-100] default cost 2

Related commands

import-route