< Home

nexthop (IS-IS)

Function

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

The undo nexthop command cancels the configuration.

By default, no preference is set 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 next hop. It is in the decimal notation format.
weight value Specifies weight of the next hop in the integer format. The value ranges from 1 to 254. By default, it is 255.

Views

IS-IS view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When there are multiple redundant links on an IS-IS network, there may be multiple equal-cost routes. This means that there may be multiple equal-cost paths to the same destination network segment.

The nexthop command is used to set the preference for a next hop. This specifies a next hop to which an IS-IS device forwards traffic, without having to modify interface costs. The smaller the value parameter, the higher the preference 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 preference.

Example

# Set the preference of equal-cost routes of IS-IS.

<sysname> system-view
[sysname] isis
[sysname-isis-1] nexthop 10.0.0.3 weight 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >