< Home

nexthop (IS-IS)

Function

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

The undo nexthop command cancels the preference of equal-cost routes.

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 a next-hop IP address. The value is in dotted decimal notation.
weight value Specifies the next-hop weight. The value is an integer that ranges from 1 to 254.

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 to the same destination network segment.

You can use this command to set the next-hop preference to determine the next hop when the interface cost remains unchanged. A smaller preference value indicates a higher preference.

Precautions

After this command is used, an IS-IS device does not load balance traffic when forwarding the traffic. Instead, the device forwards the traffic to the next hop with the highest preference.

Example

# Set the preference of 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 >