No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

CLI-based Configuration Guide - IP Unicast Routing

AR100, AR120, AR150, AR160, AR200, AR1200, AR2200, AR3200, and AR3600 V200R009

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring the Cost of an IS-IS Interface

Configuring the Cost of an IS-IS Interface

Context

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

  • Global cost: is configured for all interfaces.

  • Automatically calculated cost: is 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 want to change the cost style of IS-IS devices, running the command while configuring basic IS-IS functions is recommended. If the cost style of IS-IS devices is changed during network operation, the IS-IS process is restarted and the neighbor relationship is re-established.

Procedure

  1. Configure the 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 ] }

      The 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 the cost of an IS-IS interface.

    Perform any of the following operations to configure the cost of an IS-IS interface.

    Configure the cost of a specified IS-IS interface.

    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

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

      The cost of the IS-IS interface is configured.

      By default, the link cost of an IS-IS interface is 10.

      NOTE:

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

      To change the cost of a loopback interface, run the isis cost command only in the loopback interface view.

    Configure the global IS-IS cost.

    1. Run system-view

      The system view is displayed.

    2. Run isis [ process-id ]

      The IS-IS view is displayed.

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

      The global IS-IS cost is configured.

      By default, no global cost is configured.

    Enable IS-IS to automatically calculate the interface cost.

    1. Run system-view

      The system view is displayed.

    2. Run isis [ process-id ]

      The IS-IS view is displayed.

    3. Run bandwidth-reference value

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

    4. Run auto-cost enable [ compatible ]

      The interface is configured to automatically calculate its cost.

    The bandwidth reference value set using the 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 7-10.

    Table 7-10 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

Translation
Download
Updated: 2019-05-17

Document ID: EDOC1000174069

Views: 122658

Downloads: 269

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next