nexthop weight (IS-IS view)

Function

The nexthop weight command sets the preference for equal-cost routes.

The undo nexthop command deletes the configured priority.

By default, no priority is sent for equal-cost routes.

Format

nexthop ip-address weight value

undo nexthop ip-address

Parameters

Parameter Description Value
ip-address

Specifies the IP address of the next hop.

The value is in dotted decimal notation.

weight value

Specifies a priority.

The value is an integer ranging from 1 to 254.

Views

IS-IS view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
isis write

Usage Guidelines

Usage Scenario

When multiple redundant links are available on an IS-IS network, there may be multiple equal-cost routes among them.

The nexthop command is used to set a priority for a next hop. After the command is run, equal-cost routes are selected based on the configured priority, and the interface costs do not need to be changed. The smaller the value parameter, the higher the priority of the next hop.

By default, an IS-IS device forwards traffic in load balancing mode.

Prerequisites

IS-IS processes have been enabled, and the IS-IS routing table contains multiple equal-cost routes.

Configuration Impact

After the nexthop command is run, an IS-IS device does not forward traffic in load balancing mode to a specific destination network segment, but forwards traffic to the next hop with the highest priority.

Example

# Set the nexthop to 10.0.0.3 and the priority to 1 for IS-IS equal-cost routes.
<HUAWEI> system-view
[~HUAWEI] isis
[*HUAWEI-isis-1] nexthop 10.0.0.3 weight 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >