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