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.
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. |
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.