< Home

ipv6 auto-cost enable

Function

The ipv6 auto-cost enable command enables the SPF auto calculation of the cost.

The undo ipv6 auto-cost enable command disables the SPF auto calculation of the cost.

By default, SPF auto calculation of the cost is not enabled.

Format

ipv6 auto-cost enable [ compatible ]

undo ipv6 auto-cost enable

Parameters

Parameter Description Value
compatible

Specifies the IS-IS to calculate the cost of an interface based on the bandwidth of the interface automatically in compatible.

-

Views

IS-IS view

Default Level

2: Configuration level

Usage Guidelines

This command is valid only for an IPv6 base topology.

After the function is enabled, for a certain IS-IS interface, if the cost of the interface is not configured in the interface view, and the global cost is not configured in the IS-IS view, the system calculates the cost for the interface automatically.

If the cost-style of IS-IS is wide or wide-compatible, the formula of calculating the cost is Auto-cost = (Bandwidth-reference/Link-Bandwidth value) × 10. The Bandwidth-reference is set by the ipv6 bandwidth-reference command. The Link-Bandwidth is the interface bandwidth.

If the cost-style of the system is narrow, narrow-compatible or compatible, the cost of each interface is determined according to the following table.

Table 1 Relationship between the IS-IS interface cost and the bandwidth

Cost

Range of the interface bandwidth

60

Interface bandwidth ≤ 10Mbit/s

50

10Mbit/s < Interface bandwidth ≤ 100Mbit/s

40

100Mbit/s < Interface bandwidth ≤ 155Mbit/s

30

155Mbit/s < Interface bandwidth ≤ 622Mbit/s

20

622Mbit/s < Interface bandwidth ≤ 2.5Gbit/s

10

2.5Gbit/s < Interface bandwidth

The priority of the cost value of the global IPv6 configured by the ipv6 circuit-cost command is higher than the auto cost value.

This command can take effect only after IPv6 is enabled for the IS-IS process by the ipv6 enable command.

Example

# Enable the IPv6 auto cost calculation applicable to SPF calculation.

<sysname> system-view
[sysname] ipv6
[sysname] isis 1
[sysname-isis-1] ipv6 enable
[sysname-isis-1] ipv6 auto-cost enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >