< Home

ipv6 auto-cost enable

Function

The ipv6 auto-cost enable command enables IS-IS to automatically calculate the interface cost on an IPv6 network according to the interface bandwidth.

The undo ipv6 auto-cost enable command disables IS-IS from automatically calculating the interface cost on an IPv6 network according to the interface bandwidth.

By default, the automatic interface cost calculation function is disabled on an IPv6 network.

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 on an IPv6 network based on the bandwidth of the interface automatically in compatible.

-

Views

IS-IS view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

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 the system is wide or wide-compatible:

When auto-cost enable command is configured, Interface cost = (Bandwidth-reference/Link-bandwidth) x 10.

The cost style is set by the cost-style command. 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 of the IS-IS interface cost and the bandwidth

Cost

Range of Interface Bandwidth

60

Interface bandwidth ≤ 10 Mbit/s

50

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

40

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

30

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

20

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

10

2.5 Gbit/s < Interface bandwidth

Precautions

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.

The ipv6 auto-cost enable command cannot change the cost of the loopback interface.

Example

# Enable IS-IS to automatically calculate the interface cost on an IPv6 network according to the interface bandwidth.

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