< Home

default-cost (RIPng)

Function

The default-cost command sets the default cost for imported routes.

The undo default-cost command restores the default value 0.

By default, the default cost of RIPng routes is 0.

Format

default-cost cost

undo default-cost

Parameters

Parameter Description Value
cost Sets the default cost of imported routes. The value is an integer that ranges from 0 to 15.

Views

RIPng view

Default Level

2: Configuration level

Usage Guidelines

You can run one of the following commands to set the cost of imported routes. The following commands are listed in descending order of priorities.

  • Run the apply cost command to set the cost of routes.

  • Run the import-route command to set the cost of imported routes.

  • Run the default-cost (RIPng) command to set the default cost of imported routes.

Example

# Set the default cost of imported routes to 2.

<HUAWEI> system-view
[HUAWEI] ripng 100
[HUAWEI-ripng-100] default-cost 2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >