auto-cost enable

Use auto-cost enable to enable automatic link cost calculation for TRILL ports.

Use undo auto-cost enable to disable automatic link cost calculation for TRILL ports.

Syntax

auto-cost enable

undo auto-cost enable

Default

Automatic link cost calculation is enabled for TRILL ports.

Views

TRILL view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

The link cost of a TRILL port can be automatically calculated by the system or manually set.

The system automatically calculates the link cost of a TRILL port by using the following formula: link cost = 20000000000000/interface baud rate.

Examples

# Disable automatic link cost calculation for TRILL ports.

<Sysname> system-view
[Sysname] trill
[Sysname-trill] undo auto-cost enable

Related commands

trill cost