< Home

Configuring a Cost for IS-IS Interfaces on an IPv6 Network

Context

The costs of IS-IS interfaces can be determined in the following modes (in descending order of priority):
  • Interface cost: configured for a specified interface.

  • Global cost: configured for all interfaces.

  • Automatically calculated cost: automatically calculated based on the interface bandwidth.

If no cost is configured for an IS-IS interface, the IS-IS interface uses the default cost 10 and cost style narrow.

If you need to change the cost style of IS-IS devices, change it during the configuration of basic IS-IS functions is recommended. If the cost style of IS-IS devices is changed during network operation, the IS-IS process will be restarted, and the neighbor relationship will be re-established.

Procedure

  1. Configure an IS-IS cost style.
    1. Run system-view

      The system view is displayed.

    2. Run isis [ process-id ]

      The IS-IS view is displayed.

    3. Run cost-style { narrow | wide | wide-compatible | { narrow-compatible | compatible } [ relax-spf-limit ] }

      An IS-IS cost style is configured.

      By default, the cost style of routes received and sent by an IS-IS device is narrow.

    The cost range of an interface and a route received by the interface vary with the cost type.

    • If the cost style is narrow, the cost of an interface ranges from 1 to 63. The maximum cost of a route received by the interface is 1023.

    • If the cost style is narrow-compatible or compatible, the cost of an interface ranges from 1 to 63. The cost of a received route is related to relax-spf-limit.

    • If the cost style is wide-compatible or wide, the cost of the interface ranges from 1 to 16777215. When the cost is 16777215, the neighbor TLV generated on the link cannot be used for route calculation but for the transmission of TE information. The maximum cost of a received route is 0xFFFFFFFF.

  2. Configure a cost for an IS-IS interface on an IPv6 network.

    Perform any of the following operations as required:

    Configure a cost for a specified IS-IS interface on an IPv6 network.

    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. (Optional) On an Ethernet interface, run undo portswitch

      The interface is switched to Layer 3 mode.

      By default, an Ethernet interface works in Layer 2 mode.

      Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support switching between Layer 2 and Layer 3 modes.

    4. Run isis ipv6 cost { cost | maximum } [ level-1 | level-2 ]

      A cost is configured for the IS-IS interface on an IPv6 network.

      By default, the cost of an IS-IS interface on an IPv6 network is 10.

      You can configure the parameter maximum only when the IS-IS cost style is wide or wide-compatible.

    Configure a global IS-IS interface cost on an IPv6 network.

    1. Run system-view

      The system view is displayed.

    2. Run isis [ process-id ]

      The IS-IS view is displayed.

    3. Run ipv6 circuit-cost { cost | maximum } [ level-1 | level-2 ]

      A global IS-IS interface cost on an IPv6 network is configured.

      By default, no global cost is configured.

    Enable IS-IS interfaces to automatically calculate their costs on an IPv6 network.

    1. Run system-view

      The system view is displayed.

    2. Run isis [ process-id ]

      The IS-IS view is displayed.

    3. Run ipv6 bandwidth-reference value

      A bandwidth reference value is configured. By default, the value is 100 Mbit/s.

    4. Run ipv6 auto-cost enable [ compatible ]

      IS-IS interfaces are configured to automatically calculate their costs on an IPv6 network.

    The bandwidth reference value set using the ipv6 bandwidth-reference command takes effect only when the cost style is wide or wide-compatible. In this case, the interface cost is calculated using the following formula:

    Cost of each interface = (Bandwidth-reference/Interface bandwidth) × 10

    If the cost-style is narrow, narrow-compatible, or compatible, the cost of each interface is based on costs listed in Table 1.

    Table 1 Mapping between IS-IS interface costs and interface bandwidth

    Cost

    Bandwidth Range

    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

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >